From 067bb43a84f3eac161e2dc5df28fd8c6753f44d7 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Wed, 11 Apr 2018 12:01:19 +0200 Subject: [PATCH] Adding REQUIRED and Needs, using simple name more often --- CHANGELOG.md | 4 ++++ include/CLI/Option.hpp | 10 ++++++---- tests/HelpTest.cpp | 25 +++++++++++++++++++++++-- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b08573f..df0953f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,13 @@ * Make unlimited positionals vs. unlimited options more intuitive [#102] * Add missing getters `get_options` and `get_description` to App [#105] * The app name now can be set, and will override the auto name if present [#105] +* Add `(REQUIRED)` for required options [#104] +* Print simple name for Needs/Excludes [#104] +* Use Needs instead of Requires in help print [#104] [#102]: https://github.com/CLIUtils/CLI11/issues/102 [#105]: https://github.com/CLIUtils/CLI11/issues/105 +[#104]: https://github.com/CLIUtils/CLI11/pull/104 ## Version 1.5: Optionals diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index dd61dfd9..9074466f 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -295,7 +295,7 @@ class Option : public OptionBase