11 releases (6 stable)
| 1.2.0 | Jan 23, 2025 |
|---|---|
| 1.1.1 | Jan 22, 2024 |
| 1.0.2 | Oct 8, 2022 |
| 1.0.0 | Jan 1, 2022 |
| 0.1.2 | Jul 30, 2020 |
#45 in Command-line interface
327,670 downloads per month
Used in 63 crates
(57 directly)
18KB
220 lines
clap-num
clap number parsers.
This crate contains functions to validate and parse numerical values from strings provided by clap.
maybe_hexValidates an unsigned integer value that can be base-10 or base-16.maybe_hex_rangeValidates an unsigned integer value that can be base-10 or base-16 within a range.maybe_binValidates an unsigned integer value that can be base-10 or base-2.maybe_bin_rangeValidates an unsigned integer value that can be base-10 or base-2 within a range.number_rangeValidate a signed or unsigned integer value.si_numberValidate a signed or unsigned integer value with a metric prefix.si_number_rangeValidate a signed or unsigned integer value with a metric prefix within a range.
Dependencies
~145KB