summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'command.go')
-rw-r--r--command.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/command.go b/command.go
index de501d5..9614269 100644
--- a/command.go
+++ b/command.go
@@ -73,11 +73,9 @@ func (c *Command) predict(a Args) (options []string, only bool) {
if only {
return
}
- }
- // We matched so stop searching. Continuing to search can accidentally
- // match a subcommand with current set of commands, see issue #46.
- if subCommandFound {
+ // We matched so stop searching. Continuing to search can accidentally
+ // match a subcommand with current set of commands, see issue #46.
break
}
}