clap2-num

Crates.ioclap2-num
lib.rsclap2-num
version1.0.2
sourcesrc
created_at2023-01-13 19:12:08.53387
updated_at2023-01-13 19:12:08.53387
descriptionNumber parsers for clap
homepage
repositoryhttps://github.com/newAM/clap-num/
max_upload_size
id758118
size36,392
Alex Saveau (SUPERCILEX)

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.
  • 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: 32

cargo fmt