]> git.proxmox.com Git - rustc.git/blob - vendor/clap/examples/tutorial_builder/04_01_possible.md
New upstream version 1.65.0+dfsg1
[rustc.git] / vendor / clap / examples / tutorial_builder / 04_01_possible.md
1 ```console
2 $ 04_01_possible --help
3 clap [..]
4 A simple to use, efficient, and full-featured Command Line Argument Parser
5
6 USAGE:
7 04_01_possible[EXE] <MODE>
8
9 ARGS:
10 <MODE> What mode to run the program in [possible values: fast, slow]
11
12 OPTIONS:
13 -h, --help Print help information
14 -V, --version Print version information
15
16 $ 04_01_possible fast
17 Hare
18
19 $ 04_01_possible slow
20 Tortoise
21
22 $ 04_01_possible medium
23 ? failed
24 error: "medium" isn't a valid value for '<MODE>'
25 [possible values: fast, slow]
26
27 For more information try --help
28
29 ```