andrey-zherikov / argparse

Parser for command-line arguments
https://andrey-zherikov.github.io/argparse/
Boost Software License 1.0
31 stars 6 forks source link

Fix parsing of '-' as positional argument #147

Closed andrey-zherikov closed 9 months ago

andrey-zherikov commented 10 months ago

Closes #120

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a6b5553) 98.76% compared to head (a83d406) 98.98%. Report is 2 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #147 +/- ## ========================================== + Coverage 98.76% 98.98% +0.21% ========================================== Files 26 27 +1 Lines 1786 2071 +285 ========================================== + Hits 1764 2050 +286 + Misses 22 21 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

andrey-zherikov commented 9 months ago

arg0.length > 1 in line 147 became redundant and can be removed now. Everything else looks good.

Removed