From fc1813ef6c3c16d4793b9412aa0167971d078bfc Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Thu, 9 Nov 2017 20:55:09 +0300 Subject: add documentation for Command::RequireCommand --- args.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/args.hxx b/args.hxx index 859a210..21dd433 100644 --- a/args.hxx +++ b/args.hxx @@ -1374,6 +1374,11 @@ namespace args const std::string &Help() const { return help; } + /** If value is true, parser will fail if no command was parsed. + */ + void RequireCommand(bool value) + { commandIsRequired = value; } + virtual bool IsGroup() const override { return false; } @@ -1396,11 +1401,6 @@ namespace args } } - void RequireCommand(bool value) - { - commandIsRequired = value; - } - virtual FlagBase *Match(const EitherFlag &flag) override { if (selectedCommand != nullptr) -- cgit v1.2.1