From 3f1aa3d65e60fd683df541bd647ffb1d910a96a7 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 11 Aug 2022 00:10:21 +0200 Subject: [PATCH] Cargo.toml fix --- Cargo.toml | 2 +- src/cli.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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 }