diff options
author | Jarryd Beck <jarro.2783@gmail.com> | 2017-11-28 09:56:03 +0300 |
---|---|---|
committer | Jarryd Beck <jarro.2783@gmail.com> | 2017-11-28 10:01:41 +0300 |
commit | 2ca68adeaf17178b6de018ed1becad1f6989b6f6 (patch) | |
tree | 33c34b6c46cb35d8eac7be192a2c7fd60a23d038 /test | |
parent | abe9ebd6b4084d576ceb79904c94ef8c9c0e6c56 (diff) |
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>`.
Diffstat (limited to 'test')
-rw-r--r-- | test/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/options.cpp b/test/options.cpp index 3879660..503ed39 100644 --- a/test/options.cpp +++ b/test/options.cpp @@ -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); |