Commit bd87bdff53e68e5e29d6112bc164d5c1dde40cee
1 parent
4dcab42b
Docs update for subcom/positional
Showing
2 changed files
with
6 additions
and
0 deletions
CHANGELOG.md
| 1 | +## Version 1.2 (in progress) | |
| 2 | + | |
| 3 | +* Required positionals now take priority over subcommands [#23](https://github.com/CLIUtils/CLI11/issues/23) | |
| 4 | + | |
| 1 | 5 | ## Version 1.1 |
| 2 | 6 | |
| 3 | 7 | * Added simple support for enumerations, allow non-printable objects [#12](https://github.com/CLIUtils/CLI11/issues/12) | ... | ... |
README.md
| ... | ... | @@ -198,6 +198,8 @@ There are several options that are supported on the main app and subcommands. Th |
| 198 | 198 | * `.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). |
| 199 | 199 | * `.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. |
| 200 | 200 | |
| 201 | +> Note: if you have a fixed number of required positional options, that will match before subcommand names. | |
| 202 | + | |
| 201 | 203 | ## Configuration file |
| 202 | 204 | |
| 203 | 205 | ```cpp | ... | ... |