docs: Remove remaining references to clap attribute

This commit is contained in:
Ed Page 2023-02-18 18:42:07 -06:00
parent 5e240dddee
commit 953e2dcd34
3 changed files with 6 additions and 6 deletions

View file

@ -24,7 +24,7 @@ struct Opt {
// If provided, outputs the completion file for given shell
#[arg(long = "generate", value_enum)]
generator: Option<Shell>,
#[clap(subcommand)]
#[command(subcommand)]
command: Option<Commands>,
}

View file

@ -69,7 +69,7 @@ impl Subcommand for CliSub {
struct Cli {
#[arg(short, long)]
top_level: bool,
#[clap(subcommand)]
#[command(subcommand)]
subcommand: CliSub,
}

View file

@ -73,9 +73,9 @@ fn skip_group_avoids_duplicate_ids() {
#[derive(clap::Args, Debug)]
#[group(skip)]
pub struct Compose<L: clap::Args, R: clap::Args> {
#[clap(flatten)]
#[command(flatten)]
pub left: L,
#[clap(flatten)]
#[command(flatten)]
pub right: R,
}
@ -108,9 +108,9 @@ fn helpful_panic_on_duplicate_groups() {
#[derive(clap::Args, Debug)]
pub struct Compose<L: clap::Args, R: clap::Args> {
#[clap(flatten)]
#[command(flatten)]
pub left: L,
#[clap(flatten)]
#[command(flatten)]
pub right: R,
}