summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/usage.go b/usage.go
index e27ed5b..860dc15 100644
--- a/usage.go
+++ b/usage.go
@@ -310,9 +310,6 @@ func (p *Parser) lookupCommand(path ...string) (*command, error) {
}
}
if found == nil {
- if cmd.name == "" {
- return nil, fmt.Errorf("%q is not a top-level subcommand", name)
- }
return nil, fmt.Errorf("%q is not a subcommand of %s", name, cmd.name)
}
cmd = found