Pass --help to the most nested subcommand

'ostree admin <x> --help' and 'ostree admin instutil <x> --help' should
give help on the deepest subcommand, not on 'ostree admin'.

https://bugzilla.gnome.org/show_bug.cgi?id=737194
This commit is contained in:
Owen W. Taylor committed 2014-09-25 03:08:06 -04:00
1 parent 40f490ed11
commit 1dca556691
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ ot_admin_builtin_instutil (int argc, char **argv, OstreeSysroot *sysroot, GCance
argc = out;
if (subcommand_name == NULL || want_help)
if (subcommand_name == NULL)
{
subcommand = admin_instutil_subcommands;
g_print ("usage: ostree admin instutil COMMAND [options]\n");
+1 -1
View File
@@ -145,7 +145,7 @@ ostree_builtin_admin (int argc, char **argv, OstreeRepo *repo, GCancellable *can
argc = out;
if (subcommand_name == NULL || want_help)
if (subcommand_name == NULL)
{
subcommand = admin_subcommands;
g_print ("usage: ostree admin --sysroot=PATH COMMAND [options]\n");