Warn about extra arguments in flatpak build-sign

This commit is contained in:
Matthias Clasen
2016-09-24 10:37:03 -04:00
committed by Alexander Larsson
parent e8b05a2fa6
commit 4bb8a2e0b6

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];