diff --git a/src/commands/mod.rs b/src/commands/mod.rs index df56fed..4c1af8e 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -1,14 +1,14 @@ -use clap::{ArgEnum, Parser}; +use clap::{ValueEnum, Parser}; use std::fmt::{Display, Formatter}; #[derive(Parser)] pub struct Input { - #[clap(arg_enum)] + #[clap(value_enum)] pub cmd: CargoCommand, pub cargo_opts: Vec, } -#[derive(ArgEnum, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] +#[derive(ValueEnum, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] pub enum CargoCommand { Build, Run,