clap-num

Crates.ioclap-num
lib.rsclap-num
version1.2.0
created_at2020-07-30 03:37:15.189342+00
updated_at2025-01-23 01:26:24.422939+00
descriptionNumber parsers for clap
homepage
repositoryhttps://github.com/newAM/clap-num/
max_upload_size
id271178
size38,677
Alex Martens (newAM)

documentation

README

crates.io docs.rs Build Status

clap-num

clap number parsers.

This crate contains functions to validate and parse numerical values from strings provided by clap.

  • maybe_hex Validates an unsigned integer value that can be base-10 or base-16.
  • maybe_hex_range Validates an unsigned integer value that can be base-10 or base-16 within a range.
  • maybe_bin Validates an unsigned integer value that can be base-10 or base-2.
  • maybe_bin_range Validates an unsigned integer value that can be base-10 or base-2 within a range.
  • number_range Validate a signed or unsigned integer value.
  • si_number Validate a signed or unsigned integer value with a metric prefix.
  • si_number_range Validate a signed or unsigned integer value with a metric prefix within a range.
Commit count: 49

cargo fmt