aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/args.hxx b/args.hxx
index f947de6..67f53eb 100644
--- a/args.hxx
+++ b/args.hxx
@@ -2662,6 +2662,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_)