Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Verify that the subcommand found is a complete command #40

Merged
merged 1 commit into from
Aug 15, 2016

Conversation

mitchellh
Copy link
Owner

Prior to this "foo" would match the command "foobar" since we didn't verify that we reached a complete subcommand (ends in ' ' or end of string).

This changes the subcommand search to also verify this via a regexp. This is a one-time thing done during CLI initialization.

Prior to this "foo" would match the command "foobar" since we didn't
verify that we reached a complete subcommand (ends in ' ' or end of
string).
@mitchellh
Copy link
Owner Author

Related: hashicorp/terraform#7983

@phinze
Copy link
Contributor

phinze commented Aug 15, 2016

LGTM

@mitchellh mitchellh merged commit fcf5214 into master Aug 15, 2016
@mitchellh mitchellh deleted the b-command-prefix branch August 15, 2016 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants