mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 07:17:26 +00:00
docs: Remove remaining references to clap attribute
This commit is contained in:
parent
5e240dddee
commit
953e2dcd34
3 changed files with 6 additions and 6 deletions
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ impl Subcommand for CliSub {
|
|||
struct Cli {
|
||||
#[arg(short, long)]
|
||||
top_level: bool,
|
||||
#[clap(subcommand)]
|
||||
#[command(subcommand)]
|
||||
subcommand: CliSub,
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue