diff options
author | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-09 21:31:58 +0300 |
---|---|---|
committer | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-09 21:31:58 +0300 |
commit | 34d613b02b69fdb1c66eb61184c6f660d98ff95d (patch) | |
tree | e28b72f3d9db0ce7d490650598d24b9422cdb7ee /args.hxx | |
parent | add documentation for Command::RequireCommand (diff) | |
download | args.hxx-34d613b02b69fdb1c66eb61184c6f660d98ff95d.tar.xz |
change default value of RequireCommand
Diffstat (limited to 'args.hxx')
-rw-r--r-- | args.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1261,7 +1261,7 @@ namespace args std::string proglinePostfix; std::function<void(Subparser&)> parserCoroutine; - bool commandIsRequired = false; + bool commandIsRequired = true; Command *selectedCommand = nullptr; mutable std::vector<std::tuple<std::string, std::string, unsigned>> 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; } |