2021-11-30 18:30:19 +00:00
|
|
|
*Jump to [source](demo.rs)*
|
|
|
|
|
2021-12-08 22:46:49 +00:00
|
|
|
**This requires enabling the `derive` feature flag.**
|
|
|
|
|
2021-11-30 03:05:42 +00:00
|
|
|
Used to validate README.md's content
|
2022-01-05 16:54:33 +00:00
|
|
|
```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
|
2022-01-05 16:54:33 +00:00
|
|
|
|
2021-11-30 03:05:42 +00:00
|
|
|
```
|