| 1 | [](https://crates.io/crates/clap-num) |
| 2 | [](https://docs.rs/clap-num/) |
| 3 | [](https://github.com/newAM/clap-num/actions) |
| 4 | |
| 5 | # clap-num |
| 6 | |
| 7 | clap number parsers. |
| 8 | |
| 9 | This crate contains functions to validate and parse numerical values from |
| 10 | strings provided by [clap]. |
| 11 | |
| 12 | * `maybe_hex` |
| 13 | Validates an unsigned integer value that can be base-10 or base-16. |
| 14 | * `maybe_hex_range` |
| 15 | Validates an unsigned integer value that can be base-10 or base-16 within a range. |
| 16 | * `maybe_bin` |
| 17 | Validates an unsigned integer value that can be base-10 or base-2. |
| 18 | * `maybe_bin_range` |
| 19 | Validates an unsigned integer value that can be base-10 or base-2 within a range. |
| 20 | * `number_range` |
| 21 | Validate a signed or unsigned integer value. |
| 22 | * `si_number` |
| 23 | Validate a signed or unsigned integer value with a metric prefix. |
| 24 | * `si_number_range` |
| 25 | Validate a signed or unsigned integer value with a metric prefix within a range. |
| 26 | |
| 27 | [clap]: https://github.com/clap-rs/clap |