From 34d613b02b69fdb1c66eb61184c6f660d98ff95d Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Thu, 9 Nov 2017 21:31:58 +0300 Subject: change default value of RequireCommand --- args.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'args.hxx') diff --git a/args.hxx b/args.hxx index 21dd433..6ec4ab0 100644 --- a/args.hxx +++ b/args.hxx @@ -1261,7 +1261,7 @@ namespace args std::string proglinePostfix; std::function parserCoroutine; - bool commandIsRequired = false; + bool commandIsRequired = true; Command *selectedCommand = nullptr; mutable std::vector> subparserDescription; @@ -1375,6 +1375,8 @@ namespace args { return help; } /** If value is true, parser will fail if no command was parsed. + * + * Default: true. */ void RequireCommand(bool value) { commandIsRequired = value; } -- cgit v1.2.1