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-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-09-07 20:29:15 +00:00
|
|
|
-h, --help Print help information
|
|
|
|
-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
|
|
|
|
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
|
|
|
|
|
|
|
For more information try --help
|
|
|
|
|
|
|
|
```
|