Warn about extra arguments in flatpak build-sign

tingping/wmclass
Matthias Clasen 2016-09-24 10:37:03 -04:00 committed by Alexander Larsson
parent e8b05a2fa6
commit 4bb8a2e0b6
1 changed files with 4 additions and 4 deletions

View File

@ -67,10 +67,10 @@ flatpak_builtin_build_sign (int argc, char **argv, GCancellable *cancellable, GE
return FALSE;
if (argc < 3)
{
usage_error (context, _("LOCATION and DIRECTORY must be specified"), error);
return FALSE;
}
return usage_error (context, _("LOCATION and DIRECTORY must be specified"), error);
if (argc > 4)
return usage_error (context, _("Too many arguments"), error);
location = argv[1];
id = argv[2];