Commit 2f6fa4eb authored by Steven Allen's avatar Steven Allen

return ErrNotFound when resolving commands with valid prefixes

fixes #45
parent 707476dc
......@@ -39,7 +39,7 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
sub := cmd.Subcommand(pth[len(pth)-1])
if sub == nil {
if len(pth) <= 1 {
if cmd.Run == nil {
return nil, ErrNotFound
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment