ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: use command(flatten) instead of deprecated clap(..)

This commit is contained in:
Yuya Nishihara 2024-05-12 22:09:43 +09:00
parent db75e19751
commit 95593598d5

View file

@ -144,7 +144,7 @@ pub(crate) struct ConfigSetArgs {
name: String, name: String,
#[arg(required = true)] #[arg(required = true)]
value: String, value: String,
#[clap(flatten)] #[command(flatten)]
config_args: ConfigArgs, config_args: ConfigArgs,
} }
@ -154,7 +154,7 @@ pub(crate) struct ConfigSetArgs {
/// does. /// does.
#[derive(clap::Args, Clone, Debug)] #[derive(clap::Args, Clone, Debug)]
pub(crate) struct ConfigEditArgs { pub(crate) struct ConfigEditArgs {
#[clap(flatten)] #[command(flatten)]
pub config_args: ConfigArgs, 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. /// See `jj config edit` if you'd like to immediately edit the file.
#[derive(clap::Args, Clone, Debug)] #[derive(clap::Args, Clone, Debug)]
pub(crate) struct ConfigPathArgs { pub(crate) struct ConfigPathArgs {
#[clap(flatten)] #[command(flatten)]
pub config_args: ConfigArgs, pub config_args: ConfigArgs,
} }