From 6800b92f05e4fa51860714f9d4a5ee674fca413d Mon Sep 17 00:00:00 2001 From: Himess <95512809+Himess@users.noreply.github.com> Date: Fri, 21 Mar 2025 02:26:07 +0300 Subject: [PATCH] refactor(core): update clap attributes to #[arg(...)] and #[command(...)] --- crates/generator/src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/generator/src/parser.rs b/crates/generator/src/parser.rs index 0ce34e1..40e387f 100644 --- a/crates/generator/src/parser.rs +++ b/crates/generator/src/parser.rs @@ -19,10 +19,10 @@ const CARGO_FILE: &str = "Cargo.toml"; #[derive(Debug, Clone, Parser)] pub struct StrategyParser { /// The root directory of the new project. - #[clap(value_hint = ValueHint::DirPath, default_value = "crates/strategies/")] + #[arg(value_hint = ValueHint::DirPath, default_value = "crates/strategies/")] root: PathBuf, - #[clap(long, short)] + #[arg(long, short)] strategy_name: String, }