We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9098506 commit 8c0bcadCopy full SHA for 8c0bcad
src/tscore/ArgParser.cc
@@ -707,7 +707,13 @@ ArgParser::Command::parse(Arguments &ret, AP_StrVec &args)
707
}
708
// check for command required
709
if (!flag && _command_required) {
710
- help_message("No subcommand found for " + _name);
+ std::ostringstream msg;
711
+ if (!args.empty()) {
712
+ msg << "No sub-command '" << args[0] << "' found for " << _name;
713
+ } else {
714
+ msg << "No sub-command found for " << _name;
715
+ }
716
+ help_message(msg.str());
717
718
if (_name == parser_program_name) {
719
// if we are at the top level
0 commit comments