| 1 | ```console |
| 2 | $ 04_04_custom --help |
| 3 | A simple to use, efficient, and full-featured Command Line Argument Parser |
| 4 | |
| 5 | Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] |
| 6 | |
| 7 | Arguments: |
| 8 | [INPUT_FILE] some regular input |
| 9 | |
| 10 | Options: |
| 11 | --set-ver <VER> set version manually |
| 12 | --major auto inc major |
| 13 | --minor auto inc minor |
| 14 | --patch auto inc patch |
| 15 | --spec-in <SPEC_IN> some special input argument |
| 16 | -c <CONFIG> |
| 17 | -h, --help Print help |
| 18 | -V, --version Print version |
| 19 | |
| 20 | $ 04_04_custom |
| 21 | ? failed |
| 22 | error: Can only modify one version field |
| 23 | |
| 24 | Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] |
| 25 | |
| 26 | For more information, try '--help'. |
| 27 | |
| 28 | $ 04_04_custom --major |
| 29 | Version: 2.2.3 |
| 30 | |
| 31 | $ 04_04_custom --major --minor |
| 32 | ? failed |
| 33 | error: Can only modify one version field |
| 34 | |
| 35 | Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] |
| 36 | |
| 37 | For more information, try '--help'. |
| 38 | |
| 39 | $ 04_04_custom --major -c config.toml |
| 40 | ? failed |
| 41 | Version: 2.2.3 |
| 42 | error: INPUT_FILE or --spec-in is required when using --config |
| 43 | |
| 44 | Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] |
| 45 | |
| 46 | For more information, try '--help'. |
| 47 | |
| 48 | $ 04_04_custom --major -c config.toml --spec-in input.txt |
| 49 | Version: 2.2.3 |
| 50 | Doing work using input input.txt and config config.toml |
| 51 | |
| 52 | ``` |