From 95593598d5bb08837d84fdf9d467ead3bbc6b3f5 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 12 May 2024 22:09:43 +0900 Subject: [PATCH] cli: use command(flatten) instead of deprecated clap(..) --- cli/src/commands/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/commands/config.rs b/cli/src/commands/config.rs index 7fb4c71fa..1422501be 100644 --- a/cli/src/commands/config.rs +++ b/cli/src/commands/config.rs @@ -144,7 +144,7 @@ pub(crate) struct ConfigSetArgs { name: String, #[arg(required = true)] value: String, - #[clap(flatten)] + #[command(flatten)] config_args: ConfigArgs, } @@ -154,7 +154,7 @@ pub(crate) struct ConfigSetArgs { /// does. #[derive(clap::Args, Clone, Debug)] pub(crate) struct ConfigEditArgs { - #[clap(flatten)] + #[command(flatten)] pub config_args: ConfigArgs, } @@ -165,7 +165,7 @@ pub(crate) struct ConfigEditArgs { /// See `jj config edit` if you'd like to immediately edit the file. #[derive(clap::Args, Clone, Debug)] pub(crate) struct ConfigPathArgs { - #[clap(flatten)] + #[command(flatten)] pub config_args: ConfigArgs, }