[ostree] admin: Ensure we pass options to subcommands
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] admin: Ensure we pass options to subcommands
- Date: Sun, 9 Sep 2012 15:32:31 +0000 (UTC)
commit 2f8b3517f4744eb9fe5fa01bda942a7ceb87b0a6
Author: Colin Walters <walters verbum org>
Date: Sun Sep 9 11:31:22 2012 -0400
admin: Ensure we pass options to subcommands
Otherwise ostree admin --ostree-dir=/foo deploy --no-kernel bar
doesn't work.
src/ostree/ot-builtin-admin.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-builtin-admin.c b/src/ostree/ot-builtin-admin.c
index f8aa8f9..54f2829 100644
--- a/src/ostree/ot-builtin-admin.c
+++ b/src/ostree/ot-builtin-admin.c
@@ -64,6 +64,8 @@ ostree_builtin_admin (int argc, char **argv, GFile *repo_path, GError **error)
context = g_option_context_new ("[OPTIONS] SUBCOMMAND - Run an administrative subcommand");
g_option_context_add_main_entries (context, options, NULL);
+ /* Skip subcommand options */
+ g_option_context_set_ignore_unknown_options (context, TRUE);
if (!g_option_context_parse (context, &argc, &argv, error))
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]