Merge branch 'sg/parse-options-subcommand'
The codepath for the OPT_SUBCOMMAND facility has been cleaned up. * sg/parse-options-subcommand: notes, remote: show unknown subcommands between `' notes: simplify default operation mode arguments check test-parse-options.c: fix style of comparison with zero test-parse-options.c: don't use for loop initial declaration t0040-parse-options: remove leftover debugging
This commit is contained in:
@@ -1768,7 +1768,7 @@ int cmd_remote(int argc, const char **argv, const char *prefix)
|
||||
return !!fn(argc, argv, prefix);
|
||||
} else {
|
||||
if (argc) {
|
||||
error(_("unknown subcommand: %s"), argv[0]);
|
||||
error(_("unknown subcommand: `%s'"), argv[0]);
|
||||
usage_with_options(builtin_remote_usage, options);
|
||||
}
|
||||
return !!show_all();
|
||||
|
||||
Reference in New Issue
Block a user