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

Readme update

This commit is contained in:
Henry Fredrick Schreiner 2017-02-13 20:52:56 -05:00
parent 4e69e9794d
commit 54a2f720d6
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
## Version 0.4 (in progress)
## Version 0.4
* Updates to help print
* Removed `run`, please use `parse` unless you subclass and add it

View File

@ -114,6 +114,7 @@ The add commands return a pointer to an internally stored `Option`. If you set t
* `->check(CLI::ExistingFile)`: Requires that the file exists if given
* `->check(CLI::ExistingDirectory)`: Requires that the directory exists
* `->check(CLI::NonexistentPath)`: Requires that the path does not exist
* `->check(CLI::Range(min,max))`: Requires that the option be between min and max (make sure to use floating point if needed). Min defaults to 0.
These options return the `Option` pointer, so you can chain them together, and even skip storing the pointer entirely. Check takes any function that has the signature `bool(std::string)`. If you want to change the default help option, it is available through `get_help_ptr`.