[ostree] Pass --help to the most nested subcommand
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] Pass --help to the most nested subcommand
- Date: Thu, 25 Sep 2014 18:29:58 +0000 (UTC)
commit 1dca5566911a59276242c5e1cc8ea4a611853879
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Sep 23 15:31:30 2014 -0400
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
src/ostree/ot-admin-builtin-instutil.c | 2 +-
src/ostree/ot-builtin-admin.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ostree/ot-admin-builtin-instutil.c b/src/ostree/ot-admin-builtin-instutil.c
index 66ea80e..9e57120 100644
--- a/src/ostree/ot-admin-builtin-instutil.c
+++ b/src/ostree/ot-admin-builtin-instutil.c
@@ -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");
diff --git a/src/ostree/ot-builtin-admin.c b/src/ostree/ot-builtin-admin.c
index 6db97ca..533f15f 100644
--- a/src/ostree/ot-builtin-admin.c
+++ b/src/ostree/ot-builtin-admin.c
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]