mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
Adding info about latest PR
[skip ci]
This commit is contained in:
parent
958b0e511e
commit
1dc54dcd3d
@ -21,6 +21,9 @@
|
||||
* Unlimited options no longer prioritize over remaining/unlimited positionals [#51](https://github.com/CLIUtils/CLI11/pull/51)
|
||||
* Added `->transform` which modifies the string parsed [#54](https://github.com/CLIUtils/CLI11/pull/54)
|
||||
* Changed of API in validators to `void(std::string &)` (const for users), throwing providing nicer errors [#54](https://github.com/CLIUtils/CLI11/pull/54)
|
||||
* Added `CLI::ArgumentMismatch` [#56](https://github.com/CLIUtils/CLI11/pull/56) and fixed missing failure if one arg expected [#55](https://github.com/CLIUtils/CLI11/issues/55)
|
||||
* Support for minimum unlimited expected arguments [#56](https://github.com/CLIUtils/CLI11/pull/56)
|
||||
* Single internal arg parse function [#56](https://github.com/CLIUtils/CLI11/pull/56)
|
||||
|
||||
## Version 1.2
|
||||
|
||||
|
@ -159,7 +159,7 @@ On a C++14 compiler, you can pass a callback function directly to `.add_flag`, w
|
||||
The add commands return a pointer to an internally stored `Option`. If you set the final argument to true, the default value is captured and printed on the command line with the help flag. This option can be used directly to check for the count (`->count()`) after parsing to avoid a string based lookup. Before parsing, you can set the following options:
|
||||
|
||||
* `->required()`: The program will quit if this option is not present. This is `mandatory` in Plumbum, but required options seems to be a more standard term. For compatibility, `->mandatory()` also works.
|
||||
* `->expected(N)`: Take `N` values instead of as many as possible, only for vector args.
|
||||
* `->expected(N)`: Take `N` values instead of as many as possible, only for vector args. If negative, require at least `-N`.
|
||||
* `->requires(opt)`: This option requires another option to also be present, opt is an `Option` pointer.
|
||||
* `->excludes(opt)`: This option cannot be given with `opt` present, opt is an `Option` pointer.
|
||||
* `->envname(name)`: Gets the value from the environment if present and not passed on the command line.
|
||||
|
Loading…
x
Reference in New Issue
Block a user