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:
parent
1dca556691
commit
9d72ff2d8e
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue