2022-07-19 18:29:31 +00:00
|
|
|
```console
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 03_02_option_derive --help
|
2022-07-19 18:29:31 +00:00
|
|
|
A simple to use, efficient, and full-featured Command Line Argument Parser
|
|
|
|
|
2022-09-07 16:03:55 +00:00
|
|
|
Usage: 03_02_option_derive[EXE] [OPTIONS]
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2022-08-26 14:40:23 +00:00
|
|
|
Options:
|
2022-09-07 20:29:15 +00:00
|
|
|
-n, --name <NAME>
|
2023-01-03 16:49:43 +00:00
|
|
|
-h, --help Print help
|
|
|
|
-V, --version Print version
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 03_02_option_derive
|
2022-07-19 18:29:31 +00:00
|
|
|
name: None
|
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 03_02_option_derive --name bob
|
2022-07-19 18:29:31 +00:00
|
|
|
name: Some("bob")
|
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 03_02_option_derive --name=bob
|
2022-07-19 18:29:31 +00:00
|
|
|
name: Some("bob")
|
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 03_02_option_derive -n bob
|
2022-07-19 18:29:31 +00:00
|
|
|
name: Some("bob")
|
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 03_02_option_derive -n=bob
|
2022-07-19 18:29:31 +00:00
|
|
|
name: Some("bob")
|
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 03_02_option_derive -nbob
|
2022-07-19 18:29:31 +00:00
|
|
|
name: Some("bob")
|
|
|
|
|
|
|
|
```
|