forked from mirrors/jj
cli: use command(flatten) instead of deprecated clap(..)
This commit is contained in:
parent
db75e19751
commit
95593598d5
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue