mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 21:55:22 -04:00
Warn about extra arguments in flatpak remote-list
This commit is contained in:
committed by
Alexander Larsson
parent
1e05119b63
commit
ab2280fa5c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user