admin: Ensure we pass options to subcommands

Otherwise ostree admin --ostree-dir=/foo deploy --no-kernel bar
doesn't work.
This commit is contained in:
Colin Walters 2012-09-09 11:31:22 -04:00
parent 7831ae81c2
commit 2f8b3517f4
1 changed files with 2 additions and 0 deletions

View File

@ -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;