diff --git a/Cargo.toml b/Cargo.toml index 76826c3..5c71906 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" anyhow = "1" log = "0.4" convert-base = "1.1.2" -clap = "3.2.16" +clap = { version = "3.2.16", features = ["derive"] } diff --git a/src/cli.rs b/src/cli.rs index 44dc856..fb71c50 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,11 +1,7 @@ use clap::Parser; #[derive(Parser, Debug)] -#[clap(author, version, about, long_about = None)] struct Args { - #[clap(short, long, value_parser)] name: String, - - #[clap(short, long, value_parser, defualt_value_t = 1)] count: u8 }