1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 12:43:52 +00:00

Adding prefix command to docs

This commit is contained in:
Henry Fredrick Schreiner 2017-06-04 13:51:33 -04:00
parent 4368e2976c
commit e2fae48e59
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
## Version 1.1 (in progress) ## Version 1.1 (in progress)
* Added `app.parse_order()` with original parse order * Added `app.parse_order()` with original parse order
* Added `prefix_command()`, which is like `allow_extras` but instantly stops and returns.
## Version 1.0 ## Version 1.0
* Cleanup using `clang-tidy` and `clang-format` * Cleanup using `clang-tidy` and `clang-format`

View File

@ -194,6 +194,7 @@ There are several options that are supported on the main app and subcommands. Th
* `.parsed()`: True if this subcommand was given on the command line * `.parsed()`: True if this subcommand was given on the command line
* `.set_callback(void() function)`: Set the callback that runs at the end of parsing. The options have already run at this point. * `.set_callback(void() function)`: Set the callback that runs at the end of parsing. The options have already run at this point.
* `.allow_extras()`: Do not throw an error if extra arguments are left over (Only useful on the main `App`, as that's the one that throws errors). * `.allow_extras()`: Do not throw an error if extra arguments are left over (Only useful on the main `App`, as that's the one that throws errors).
* `.prefix_command()`: Like `allow_extras`, but stop immediately on the first unrecognised item. It is ideal for allowing your app to be a "prefix" to calling another app.
## Configuration file ## Configuration file