mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
7b3d3401c0
When working on #2803, I noticed a disprecancy in the augment behavior between `Arg`s and `Subcommand`s that makes it so `Arg`s can't be flattened with the update functionality.
15 lines
526 B
Text
15 lines
526 B
Text
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied
|
|
--> $DIR/flatten_enum_in_struct.rs:3:12
|
|
|
|
|
3 | #[clap(flatten)]
|
|
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd`
|
|
|
|
|
= note: required by `augment_args`
|
|
|
|
error[E0277]: the trait bound `SubCmd: clap::Args` is not satisfied
|
|
--> $DIR/flatten_enum_in_struct.rs:3:12
|
|
|
|
|
3 | #[clap(flatten)]
|
|
| ^^^^^^^ the trait `clap::Args` is not implemented for `SubCmd`
|
|
|
|
|
= note: required by `augment_args_for_update`
|