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-30 03:05:42 +00:00
Used to validate README.md's content
```console
2021-11-30 03:05:42 +00:00
$ demo --help
clap [..]
A simple to use, efficient, and full-featured Command Line Argument Parser
USAGE:
2021-12-07 21:34:23 +00:00
demo[EXE] [OPTIONS] --name <NAME>
2021-11-30 03:05:42 +00:00
OPTIONS:
2021-12-07 21:34:23 +00:00
-c, --count <COUNT> Number of times to greet [default: 1]
2021-11-30 03:05:42 +00:00
-h, --help Print help information
2021-12-07 21:34:23 +00:00
-n, --name <NAME> Name of the person to greet
2021-11-30 03:05:42 +00:00
-V, --version Print version information
2021-11-30 03:05:42 +00:00
```