Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJarryd Beck <jarro.2783@gmail.com>2017-11-28 09:56:03 +0300
committerJarryd Beck <jarro.2783@gmail.com>2017-11-28 10:01:41 +0300
commit2ca68adeaf17178b6de018ed1becad1f6989b6f6 (patch)
tree33c34b6c46cb35d8eac7be192a2c7fd60a23d038 /test
parentabe9ebd6b4084d576ceb79904c94ef8c9c0e6c56 (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.cpp2
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);