mirror of
https://github.com/clap-rs/clap
synced 2025-01-23 01:45:00 +00:00
32b5520ff1
mitsuhiko immediately jumped into the examples and got tripped up by the lack of documentation on feature flags needed. I limited this to just the root ones because the rest are in a more proper tutorial that steps through it all.
20 lines
512 B
Markdown
20 lines
512 B
Markdown
*Jump to [source](demo.rs)*
|
|
|
|
**This requires enabling the `derive` feature flag.**
|
|
|
|
Used to validate README.md's content
|
|
```bash
|
|
$ demo --help
|
|
clap [..]
|
|
|
|
A simple to use, efficient, and full-featured Command Line Argument Parser
|
|
|
|
USAGE:
|
|
demo[EXE] [OPTIONS] --name <NAME>
|
|
|
|
OPTIONS:
|
|
-c, --count <COUNT> Number of times to greet [default: 1]
|
|
-h, --help Print help information
|
|
-n, --name <NAME> Name of the person to greet
|
|
-V, --version Print version information
|
|
```
|