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:
parent
7831ae81c2
commit
2f8b3517f4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue