Fix help output for nested subcommands

Only 'ostree admin' was appearing in the help message for commands
nested within 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 1dca556691
commit 9d72ff2d8e
2 files changed
+4

No files matched your search

+2
View File
@@ -151,6 +151,8 @@ ot_admin_builtin_instutil (int argc, char **argv, OstreeSysroot *sysroot, GCance
goto out;
}
g_set_prgname (g_strdup_printf ("ostree admin instutil %s", subcommand_name));
if (!subcommand->fn (argc, argv, sysroot, cancellable, error))
goto out;
+2
View File
@@ -179,6 +179,8 @@ ostree_builtin_admin (int argc, char **argv, OstreeRepo *repo, GCancellable *can
goto out;
}
g_set_prgname (g_strdup_printf ("ostree admin %s", subcommand_name));
sysroot_path = g_file_new_for_path (opt_sysroot);
sysroot = ostree_sysroot_new (sysroot_path);
if (!subcommand->fn (argc, argv, sysroot, cancellable, error))