Fix positional arguments overload

Fixes #83.

Adds an overload for positional arguments taking a
`std::initializer_list`. When using an `initializer_list` with one
argument, the function call is ambiguous matching both `std::string`
and `std::vector<std::string>`.
This commit is contained in:
Jarryd Beck
2017-11-28 18:01:41 +11:00
parent abe9ebd6b4
commit 2ca68adeaf
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ TEST_CASE("All positional", "[positional]")
auto argc = av.argc();
auto argv = av.argv();
options.parse_positional("positional");
options.parse_positional({"positional"});
auto result = options.parse(argc, argv);