]> git.proxmox.com Git - rustc.git/blob - vendor/clap/examples/tutorial_builder/03_02_option.md
New upstream version 1.68.2+dfsg1
[rustc.git] / vendor / clap / examples / tutorial_builder / 03_02_option.md
1 ```console
2 $ 03_02_option --help
3 A simple to use, efficient, and full-featured Command Line Argument Parser
4
5 Usage: 03_02_option[EXE] [OPTIONS]
6
7 Options:
8 -n, --name <name>
9 -h, --help Print help
10 -V, --version Print version
11
12 $ 03_02_option
13 name: None
14
15 $ 03_02_option --name bob
16 name: Some("bob")
17
18 $ 03_02_option --name=bob
19 name: Some("bob")
20
21 $ 03_02_option -n bob
22 name: Some("bob")
23
24 $ 03_02_option -n=bob
25 name: Some("bob")
26
27 $ 03_02_option -nbob
28 name: Some("bob")
29
30 ```