clap/examples/demo.md

21 lines
515 B
Markdown
Raw Normal View History

*Jump to [source](demo.rs)*
**This requires enabling the `derive` feature flag.**
2021-11-29 21:05:42 -06:00
Used to validate README.md's content
```console
2021-11-29 21:05:42 -06:00
$ demo --help
clap [..]
A simple to use, efficient, and full-featured Command Line Argument Parser
USAGE:
2021-12-07 15:34:23 -06:00
demo[EXE] [OPTIONS] --name <NAME>
2021-11-29 21:05:42 -06:00
OPTIONS:
2021-12-07 15:34:23 -06:00
-c, --count <COUNT> Number of times to greet [default: 1]
2021-11-29 21:05:42 -06:00
-h, --help Print help information
2021-12-07 15:34:23 -06:00
-n, --name <NAME> Name of the person to greet
2021-11-29 21:05:42 -06:00
-V, --version Print version information
2021-11-29 21:05:42 -06:00
```