Open
Description
Problem
Using --config
with nightly to specify an alias, and then immediately calling that alias, fails with a confusing error message:
$ cargo +nightly --config 'alias.foo="build"' foo
error: no such subcommand: `foo`
Did you mean `foo`?
Steps
cargo new name
cd name
cargo +nightly --config 'alias.foo="build"' foo
Possible Solution(s)
Either the alias should work, or the error message should change in this case.
Notes
No response
Version
cargo 1.64.0-nightly (dbff32b27 2022-06-24)
release: 1.64.0-nightly
commit-hash: dbff32b27893b899ae2397f3d56d1be111041d56
commit-date: 2022-06-24
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1n)
os: Arch Linux [64-bit]