mirror of
https://github.com/Noratrieb/badargs.git
synced 2026-01-14 19:55:08 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
492a25e952
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
A zero-dependency full type-safe argument parser.
|
A zero-dependency full type-safe argument parser.
|
||||||
|
|
||||||
|
It's corect enough for what it does.
|
||||||
|
|
||||||
`badargs` handles non Utf8 input by just printing an error and exiting the program gracefully.
|
`badargs` handles non Utf8 input by just printing an error and exiting the program gracefully.
|
||||||
|
|
||||||
# How to use
|
# How to use
|
||||||
|
|
@ -45,4 +47,10 @@ The other values can be `None` or `Some(_)`
|
||||||
|
|
||||||
Automatic `--help` handling
|
Automatic `--help` handling
|
||||||
|
|
||||||
(Maybe) adding metadata, for example for `--version`
|
(Maybe) adding metadata, for example for `--version`
|
||||||
|
|
||||||
|
# Why doesn't badargs have x?
|
||||||
|
|
||||||
|
If you want a fully featured, even more type safe argument parser, use [Clap](https://github.com/clap-rs/clap), or [structopt](https://github.com/TeXitoi/structopt).
|
||||||
|
|
||||||
|
These do have a lot of dependencies and/or proc macros, so they are a lot more heavy compilation wise. Badargs is perfect for you if you don't want or need that.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue