Skip to content

Commit

Permalink
bin.rs update help and comment for --blocksz
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
jtmoon79 committed Dec 20, 2022
1 parent 9445571 commit 2157861
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bin/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ struct CLI_Args {
color_choice: CLI_Color_Choice,

/// Read blocks of this size in bytes.
/// May pass decimal or hexadecimal numbers.
/// May pass value as any radix (hexadecimal, decimal, octal, binary).
/// Using the default value is recommended.
/// Most useful for developers.
#[clap(
Expand All @@ -549,7 +549,10 @@ struct CLI_Args {
summary: bool,
}

/// CLI argument processing.
/// `clap` argument processor for `--blocksz`.
/// This implementation, as opposed to clap built-in number parsing, allows more
/// flexibility for how the user may pass a number
/// e.g. "0xF00", or "0b10100", etc.
fn cli_process_blocksz(blockszs: &String) -> std::result::Result<u64, String> {
// TODO: there must be a more concise way to parse numbers with radix formatting
let blocksz_: BlockSz;
Expand Down

0 comments on commit 2157861

Please sign in to comment.