diff options
author | Amin Paydar <maPaydar@users.noreply.github.com> | 2017-12-12 09:33:07 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 09:33:07 +0330 |
commit | 6fd6d74539463138a27850f2ed374e7cb0aa751d (patch) | |
tree | b762a8e0ec8fc13b77e6f5dafc58a03941c1e3e2 | |
parent | Merge pull request #51 from pavel-belikov/fix-usage-wrapping (diff) | |
download | args.hxx-6fd6d74539463138a27850f2ed374e7cb0aa751d.tar.xz |
Adds ParseCLI overload to parse vector of string
-rw-r--r-- | args.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2613,6 +2613,11 @@ namespace args const std::vector<std::string> args(argv + 1, argv + argc); return ParseArgs(args) == std::end(args); } + + bool ParseCLI(const std::vector<std::string> args) + { + return ParseArgs(args) == std::end(args); + } }; inline Command::RaiiSubparser::RaiiSubparser(ArgumentParser &parser_, std::vector<std::string> args_) |