aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor C. Richberger <taywee@gmx.com>2017-12-12 11:45:13 -0700
committerGitHub <noreply@github.com>2017-12-12 11:45:13 -0700
commitc1ce98d50a42434723dcac64acbfbf20dc630aa9 (patch)
treed97338b461aad5115fa9d6ec7ec12361a0aa4e1f
parentAdds ParseCLI overload to parse vector of string (diff)
downloadargs.hxx-c1ce98d50a42434723dcac64acbfbf20dc630aa9.tar.xz
Update args.hxx
Take reference instead of copy of vector.
-rw-r--r--args.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/args.hxx b/args.hxx
index eee8b14..b0f1182 100644
--- a/args.hxx
+++ b/args.hxx
@@ -2614,7 +2614,7 @@ namespace args
return ParseArgs(args) == std::end(args);
}
- bool ParseCLI(const std::vector<std::string> args)
+ bool ParseCLI(const std::vector<std::string> &args)
{
return ParseArgs(args) == std::end(args);
}