Warn about extra arguments in flatpak build-export

tingping/wmclass
Matthias Clasen 2016-09-24 10:33:51 -04:00 committed by Alexander Larsson
parent a9e6542354
commit 0274bffac3
1 changed files with 6 additions and 0 deletions

View File

@ -519,6 +519,12 @@ flatpak_builtin_build_export (int argc, char **argv, GCancellable *cancellable,
goto out;
}
if (argc > 4)
{
usage_error (context, _("Too many arguments"), error);
goto out;
}
location = argv[1];
directory = argv[2];