1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-05 22:53:52 +00:00

Adding to readme

This commit is contained in:
Henry Fredrick Schreiner 2017-02-20 11:39:58 -05:00
parent 33de7af0e6
commit 217075b2d1

View File

@ -149,7 +149,8 @@ On the command line, options can be given as:
* `--file filename` (space) * `--file filename` (space)
* `--file=filename` (equals) * `--file=filename` (equals)
Extra positional arguments will cause the program to exit, so at least one positional option with a vector is recommended if you want to allow extraneous arguments Extra positional arguments will cause the program to exit, so at least one positional option with a vector is recommended if you want to allow extraneous arguments.
If you set `.allow_extras()` on the main `App`, the parse function will return the left over arguments instead of throwing an error.
If `--` is present in the command line, If `--` is present in the command line,
everything after that is positional only. everything after that is positional only.