# # # patch "commands.cc" # from [8c9ad0869b0b16a452632b9e3ae127b3e2517263] # to [2ed5778eea2db2a9550c017b15273df0c1937b77] # ============================================================ --- commands.cc 8c9ad0869b0b16a452632b9e3ae127b3e2517263 +++ commands.cc 2ed5778eea2db2a9550c017b15273df0c1937b77 @@ -665,8 +665,8 @@ namespace commands args_vector const & args) { command * cmd = CMD_REF(__root__)->find_command(ident); - I(cmd->is_leaf()); - if (cmd != NULL) + + if (cmd->is_leaf()) { L(FL("executing command '%s'") % join_words(ident)); @@ -680,7 +680,11 @@ namespace commands } else { - P(F("unknown command '%s'") % join_words(ident)); + if (args.empty()) + W(F("no subcommand specified for '%s'") % join_words(ident)); + else + W(F("could not match '%s' to a subcommand of '%s'") % + join_words(args) % join_words(ident)); return 1; } }