summaryrefslogtreecommitdiffstats
path: root/vendor/clap/examples/demo.md
blob: 9b0e7e260f199f9b5cf2a32921607d24571b0fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
*Jump to [source](demo.rs)*

**This requires enabling the `derive` feature flag.**

Used to validate README.md's content
```console
$ 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

```