From 54a2f720d6835adee9bedbbb4c838badb39a6a09 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Mon, 13 Feb 2017 20:52:56 -0500 Subject: [PATCH] Readme update --- CHANGELOG.md | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 953cdcc5..20fc8d60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 8d323e19..4d566619 100644 --- a/README.md +++ b/README.md @@ -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`.