Debian Codegraph @

debian/missing-sources/clap/examples/tutorial_builder/04_01_enum.md

raw symbols SCIP
1 ```console
2 $ 04_01_enum --help
3 A simple to use, efficient, and full-featured Command Line Argument Parser
4
5 Usage: 04_01_enum[EXE] <MODE>
6
7 Arguments:
8 <MODE>
9 What mode to run the program in
10
11 Possible values:
12 - fast: Run swiftly
13 - slow: Crawl slowly but steadily
14
15 Options:
16 -h, --help
17 Print help (see a summary with '-h')
18
19 -V, --version
20 Print version
21
22 $ 04_01_enum -h
23 A simple to use, efficient, and full-featured Command Line Argument Parser
24
25 Usage: 04_01_enum[EXE] <MODE>
26
27 Arguments:
28 <MODE> What mode to run the program in [possible values: fast, slow]
29
30 Options:
31 -h, --help Print help (see more with '--help')
32 -V, --version Print version
33
34 $ 04_01_enum fast
35 Hare
36
37 $ 04_01_enum slow
38 Tortoise
39
40 $ 04_01_enum medium
41 ? failed
42 error: invalid value 'medium' for '<MODE>'
43 [possible values: fast, slow]
44
45 For more information, try '--help'.
46
47 ```