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
For example, when using b as an alias of build, the -Ztimings flag is ignored:
$ cargo -Ztimings b
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
$ cargo -Ztimings build
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Timing report saved to /home/...
Fix using global options before an alias.
Options before an alias were being ignored (like `cargo -v b`). The solution is to extract those global options before expanding an alias, and then merging it later.
An alternative to this is to try to avoid discarding the options during expansion, but I couldn't figure out a way to get the position of the subcommand in the argument list. Clap only provides a way to get the arguments *following* the subcommand.
I also cleaned up some of the code in `Config::configure`, which was carrying some weird baggage from previous refactorings.
Fixes#7834
For example, when using
b
as an alias ofbuild
, the-Ztimings
flag is ignored:The original context: rust-lang/rust#68548 (comment)
Notes
cargo 1.42.0-nightly (f6449ba 2020-01-21)
The text was updated successfully, but these errors were encountered: