2022-07-19 18:29:31 +00:00
|
|
|
```console
|
|
|
|
$ 04_01_enum --help
|
|
|
|
A simple to use, efficient, and full-featured Command Line Argument Parser
|
|
|
|
|
2022-09-07 16:03:55 +00:00
|
|
|
Usage: 04_01_enum[EXE] <MODE>
|
2022-07-19 18:29:31 +00:00
|
|
|
|
2022-10-04 18:54:03 +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 18:54:03 +00:00
|
|
|
|
|
|
|
-V, --version
|
2023-01-03 16:49:43 +00:00
|
|
|
Print version
|
2022-10-04 18:54:03 +00:00
|
|
|
|
|
|
|
$ 04_01_enum -h
|
|
|
|
A simple to use, efficient, and full-featured Command Line Argument Parser
|
|
|
|
|
|
|
|
Usage: 04_01_enum[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
|
|
|
|
|
|
|
$ 04_01_enum fast
|
|
|
|
Hare
|
|
|
|
|
|
|
|
$ 04_01_enum slow
|
|
|
|
Tortoise
|
|
|
|
|
|
|
|
$ 04_01_enum medium
|
|
|
|
? 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
|
|
|
|
|
|
|
```
|