You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before, when doing an `update` involving subcommands, we generated
parsing rules for the `from` case instead, requiring all arguments to be
present.
This switches us to descending into `update` code and adds tests to
verify it works.
This is a part of clap-rs#2605
Discussed in #2591
Originally posted by epage July 14, 2021
This was implemented in #1878 for #1837 based on #1836.
I've not dig into all of #1878's comments but at one point the thought was:
This isn't always the case. From inspection
SubCmd{ field: i32 }
generates an augment updateSubCmd(Args)
is hard coded to call augment#[flatten] Subcommand(MoreCmds)
is hard coded to call augment#[subcmmand] field: SubCmd
calls augment update#[flatten] field: MoreArgs
is hard coded to call augmentExample generated code from
clap_derive/tests/flatten.rs
where there is a mismatch in augment vs fromThe text was updated successfully, but these errors were encountered: