bin/remote: don't load repo on root command

Subcommands will demand a repo argument themselves. This allows one to
call `ostree remote` and get the "No subcommand" error rather than the
"Missing --repo" error.

Closes: #1126
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon authored and Atomic Bot committed 2017-09-13 14:32:20 +00:00
1 parent 4c02fc2daa
commit 4cc813133c
1 file changed
+2 -1
+2 -1
View File
@@ -115,7 +115,8 @@ ostree_builtin_remote (int argc, char **argv, GCancellable *cancellable, GError
/* This will not return for some options (e.g. --version). */
if (ostree_option_context_parse (context, NULL, &argc, &argv,
OSTREE_BUILTIN_FLAG_NONE, NULL, cancellable, error))
OSTREE_BUILTIN_FLAG_NO_REPO, NULL, cancellable,
error))
{
if (subcommand_name == NULL)
{