Commit 54a2f720d6835adee9bedbbb4c838badb39a6a09
1 parent
4e69e979
Readme update
Showing
2 changed files
with
2 additions
and
1 deletions
CHANGELOG.md
README.md
| ... | ... | @@ -114,6 +114,7 @@ The add commands return a pointer to an internally stored `Option`. If you set t |
| 114 | 114 | * `->check(CLI::ExistingFile)`: Requires that the file exists if given |
| 115 | 115 | * `->check(CLI::ExistingDirectory)`: Requires that the directory exists |
| 116 | 116 | * `->check(CLI::NonexistentPath)`: Requires that the path does not exist |
| 117 | +* `->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. | |
| 117 | 118 | |
| 118 | 119 | 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`. |
| 119 | 120 | ... | ... |