[med-svn] [Git][med-team/libargs][master] 4 commits: New upstream version 6.2.4

Nilesh Patra gitlab at salsa.debian.org
Fri Nov 6 18:04:40 GMT 2020



Nilesh Patra pushed to branch master at Debian Med / libargs


Commits:
0e404ed6 by Nilesh Patra at 2020-11-06T23:30:47+05:30
New upstream version 6.2.4
- - - - -
affb9908 by Nilesh Patra at 2020-11-06T23:30:47+05:30
routine-update: New upstream version

- - - - -
9f9b24a6 by Nilesh Patra at 2020-11-06T23:30:48+05:30
Update upstream source from tag 'upstream/6.2.4'

Update to upstream version '6.2.4'
with Debian dir 64fd34633b7a06c855923efdc5ba0599f75673d7
- - - - -
df72c139 by Nilesh Patra at 2020-11-06T23:30:53+05:30
routine-update: Ready to upload to unstable

- - - - -


3 changed files:

- args.hxx
- debian/changelog
- test.cxx


Changes:

=====================================
args.hxx
=====================================
@@ -50,6 +50,7 @@
 #include <unordered_set>
 #include <type_traits>
 #include <cstddef>
+#include <iostream>
 
 #if defined(_MSC_VER) && _MSC_VER <= 1800
 #define noexcept
@@ -2351,7 +2352,7 @@ namespace args
 
                     while (valueIt != end &&
                            values.size() < nargs.max &&
-                           (nargs.min == nargs.max || ParseOption(*valueIt) == OptionType::Positional))
+                           (values.size() < nargs.min || ParseOption(*valueIt) == OptionType::Positional))
                     {
                         if (Complete(flag, valueIt, end))
                         {


=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+libargs (6.2.4-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream version
+
+ -- Nilesh Patra <npatra974 at gmail.com>  Fri, 06 Nov 2020 23:30:53 +0530
+
 libargs (6.2.3-1) unstable; urgency=medium
 
   * New upstream version


=====================================
test.cxx
=====================================
@@ -695,8 +695,8 @@ TEST_CASE("Nargs work as expected", "[args]")
     REQUIRE_THROWS_AS(parser.ParseArgs(std::vector<std::string>{"-a1"}), args::ParseError);
     REQUIRE_THROWS_AS(parser.ParseArgs(std::vector<std::string>{"-a1", "2"}), args::ParseError);
 
-    REQUIRE_NOTHROW(parser.ParseArgs(std::vector<std::string>{"-b", "1", "2", "-f"}));
-    REQUIRE((args::get(b) == std::vector<int>{1, 2}));
+    REQUIRE_NOTHROW(parser.ParseArgs(std::vector<std::string>{"-b", "1", "-2", "-f"}));
+    REQUIRE((args::get(b) == std::vector<int>{1, -2}));
     REQUIRE(args::get(f) == true);
 
     REQUIRE_NOTHROW(parser.ParseArgs(std::vector<std::string>{"-b", "1", "2", "3"}));



View it on GitLab: https://salsa.debian.org/med-team/libargs/-/compare/37d73c1fb7af7021d0424355a270111d53db1df4...df72c139a2a15c4cb3487480a63e092b10fd501c

-- 
View it on GitLab: https://salsa.debian.org/med-team/libargs/-/compare/37d73c1fb7af7021d0424355a270111d53db1df4...df72c139a2a15c4cb3487480a63e092b10fd501c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20201106/08c8a64d/attachment-0001.html>


More information about the debian-med-commit mailing list