mirror of
https://github.com/ostreedev/ostree.git
synced 2025-02-09 13:57:52 +03:00
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:
parent
40f490ed11
commit
1dca556691
@ -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");
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user