add base args expected

This commit is contained in:
2025-06-15 17:01:44 -04:00
parent 759aea389b
commit d11788757b
3 changed files with 279 additions and 0 deletions

28
src/args.rs Normal file
View File

@@ -0,0 +1,28 @@
use clap::Parser;
#[derive(Parser, Debug)]
#[command(version, about = None, long_about = None)]
pub struct Args {
#[arg(default_value_t = false)]
/// SHA2-256
#[arg(long)]
pub sha256: bool,
/// SHA3-256
#[arg(long)]
pub sha3_256: bool,
/// SHA1
#[arg(long)]
pub sha1: bool,
/// CRC_32_ISO_HDLC
#[arg(long)]
pub crc32_iso: bool,
/// CRC_32_CKSUM
#[arg(long)]
pub crc32_posix: bool,
/// CRC_32_XFER
#[arg(long)]
pub crc32_xfer: bool,
/// Blake2b256
#[arg(long)]
pub blake256: bool,
}