From 4e62a0a980c699a40073f5382fd3b821e8967b33 Mon Sep 17 00:00:00 2001 From: recklesstodd Date: Sun, 11 Feb 2018 19:33:21 +0100 Subject: [PATCH] #76 | Remove "is required" string passed as an argument to RequiredError() constructor to avoid double printing. The string "is required" is already added internally by RequiredError() class. --- include/CLI/App.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 038f3929..1c8174d3 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -1176,7 +1176,7 @@ class App { // Required but empty if(opt->get_required() && opt->count() == 0) - throw RequiredError(opt->single_name() + " is required"); + throw RequiredError(opt->single_name()); } // Requires for(const Option *opt_req : opt->requires_)