Warn about extra arguments in flatpak remote-list

This commit is contained in:
Matthias Clasen
2016-09-21 06:39:35 -07:00
committed by Alexander Larsson
parent 1e05119b63
commit ab2280fa5c

View File

@@ -61,6 +61,9 @@ flatpak_builtin_list_remotes (int argc, char **argv, GCancellable *cancellable,
if (!flatpak_option_context_parse (context, options, &argc, &argv, FLATPAK_BUILTIN_FLAG_NO_DIR, NULL, cancellable, error))
return FALSE;
if (argc > 1)
return usage_error (context, _("Too many arguments"), error);
if (!opt_user && !opt_system)
opt_system = TRUE;