Skip to content

Conversation

matklad
Copy link
Contributor

@matklad matklad commented May 3, 2018

Previously, execute_subcommand was called recursively, and each call
would .configure the config again. It worked, but seemed rather
fragile.

This commit handles aliases more explicitly, ensures that .configure
is called once and, as a bonus, adds a warning for when an alias is
shadowed by the built in.

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

r=me, nice!

@matklad
Copy link
Contributor Author

matklad commented May 3, 2018

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented May 3, 2018

📌 Commit e4e3177 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented May 3, 2018

⌛ Testing commit e4e31776f56307a68962e85020386083e7bfc1e0 with merge d25fb85f77e29053b54d4d12782411f15b019845...

@bors
Copy link
Contributor

bors commented May 3, 2018

💔 Test failed - status-travis

matklad added 2 commits May 3, 2018 18:29
Previously, `execute_subcommand` was called recursively, and each call
would `.configure` the `config` again. It worked, but seemed rather
fragile.

This commit handles aliases more explicitly, ensures that `.configure`
is called once and, as a bonus, adds a warning for when an alias is
shadowed by the built in.
By convention, all errors should start with a lowercase letter
@matklad
Copy link
Contributor Author

matklad commented May 3, 2018

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented May 3, 2018

📌 Commit ecd1e5d has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented May 3, 2018

⌛ Testing commit ecd1e5d with merge 151f37c...

bors added a commit that referenced this pull request May 3, 2018
Tweak handling of aliases

Previously, `execute_subcommand` was called recursively, and each call
would `.configure` the `config` again. It worked, but seemed rather
fragile.

This commit handles aliases more explicitly, ensures that `.configure`
is called once and, as a bonus, adds a warning for when an alias is
shadowed by the built in.
@bors
Copy link
Contributor

bors commented May 3, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 151f37c to master...

@bors bors merged commit ecd1e5d into rust-lang:master May 3, 2018
@bors bors mentioned this pull request May 3, 2018
@ehuss ehuss added this to the 1.27.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants