mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Two differences that diverge from the existing behavior: 1. Leading zeros are not allowed for integers. Negative octal numbers such as `-066` are not meant to be treated as positional arguments, but existing code recognize them as decimal numbers. Note that negative floating-point numbers with leading zeros (`-003.`) are unambiguous and are recognized. 2. Inf and NaN are not recognized. This is because options like `-inf` is indistinguishable from a compound argument that meant to be a shorthand for `-i -n -f`. fixes: p-ranav/argparse#55 |
||
---|---|---|
.. | ||
argparse.hpp |