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 2014-09-23 15:33:13 -04:00
parent 1dca556691
commit 9d72ff2d8e
2 changed files with 4 additions and 0 deletions

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;

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))