mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 06:11:47 -04:00
Warn about extra arguments in flatpak build-import-bundle
This commit is contained in:
committed by
Alexander Larsson
parent
6cde704f0c
commit
2c463d3751
@@ -297,6 +297,9 @@ flatpak_builtin_build_import (int argc, char **argv, GCancellable *cancellable,
|
||||
if (argc < 3)
|
||||
return usage_error (context, _("LOCATION and FILENAME must be specified"), error);
|
||||
|
||||
if (argc > 3)
|
||||
return usage_error (context, _("Too many arguments"), error);
|
||||
|
||||
location = argv[1];
|
||||
filename = argv[2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user