2022-07-19 18:29:31 +00:00
|
|
|
```console
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 04_01_enum_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: 04_01_enum_derive[EXE] <MODE>
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2022-10-04 12:32:49 +00:00
|
|
|
Arguments:
|
|
|
|
<MODE>
|
|
|
|
What mode to run the program in
|
|
|
|
|
|
|
|
Possible values:
|
|
|
|
- fast: Run swiftly
|
|
|
|
- slow: Crawl slowly but steadily
|
|
|
|
|
|
|
|
Options:
|
|
|
|
-h, --help
|
|
|
|
Print help information (use `-h` for a summary)
|
|
|
|
|
|
|
|
-V, --version
|
|
|
|
Print version information
|
|
|
|
|
|
|
|
$ 04_01_enum_derive -h
|
|
|
|
A simple to use, efficient, and full-featured Command Line Argument Parser
|
|
|
|
|
|
|
|
Usage: 04_01_enum_derive[EXE] <MODE>
|
|
|
|
|
2022-08-26 14:40:23 +00:00
|
|
|
Arguments:
|
2022-09-07 20:29:15 +00:00
|
|
|
<MODE> What mode to run the program in [possible values: fast, slow]
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2022-08-26 14:40:23 +00:00
|
|
|
Options:
|
2022-10-04 12:32:49 +00:00
|
|
|
-h, --help Print help information (use `--help` for more detail)
|
2022-09-07 20:29:15 +00:00
|
|
|
-V, --version Print version information
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 04_01_enum_derive fast
|
2022-07-19 18:29:31 +00:00
|
|
|
Hare
|
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 04_01_enum_derive slow
|
2022-07-19 18:29:31 +00:00
|
|
|
Tortoise
|
|
|
|
|
2022-08-08 19:05:08 +00:00
|
|
|
$ 04_01_enum_derive medium
|
2022-07-19 18:29:31 +00:00
|
|
|
? failed
|
2022-10-13 15:45:38 +00:00
|
|
|
error: 'medium' isn't a valid value for '<MODE>'
|
2022-09-07 20:29:15 +00:00
|
|
|
[possible values: fast, slow]
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2022-09-15 19:22:28 +00:00
|
|
|
For more information try '--help'
|
2022-07-19 18:29:31 +00:00
|
|
|
|
|
|
|
```
|