Commit e2fae48e5997025c2df13a31a05ac5d1a02299da
1 parent
4368e297
Adding prefix command to docs
Showing
2 changed files
with
2 additions
and
0 deletions
CHANGELOG.md
README.md
| ... | ... | @@ -194,6 +194,7 @@ There are several options that are supported on the main app and subcommands. Th |
| 194 | 194 | * `.parsed()`: True if this subcommand was given on the command line |
| 195 | 195 | * `.set_callback(void() function)`: Set the callback that runs at the end of parsing. The options have already run at this point. |
| 196 | 196 | * `.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). |
| 197 | +* `.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. | |
| 197 | 198 | |
| 198 | 199 | ## Configuration file |
| 199 | 200 | ... | ... |