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
|
2023-01-03 16:49:43 +00:00
|
|
|
Print help (see a summary with '-h')
|
2022-10-04 12:32:49 +00:00
|
|
|
|
|
|
|
-V, --version
|
2023-01-03 16:49:43 +00:00
|
|
|
Print version
|
2022-10-04 12:32:49 +00:00
|
|
|
|
|
|
|
$ 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:
|
2023-01-03 16:49:43 +00:00
|
|
|
-h, --help Print help (see more with '--help')
|
|
|
|
-V, --version Print version
|
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
|
2023-01-06 23:01:34 +00:00
|
|
|
error: invalid value 'medium' for '<MODE>'
|
2022-09-07 20:29:15 +00:00
|
|
|
[possible values: fast, slow]
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2023-01-03 19:22:35 +00:00
|
|
|
For more information, try '--help'.
|
2022-07-19 18:29:31 +00:00
|
|
|
|
|
|
|
```
|