diff --git a/osc/commandline.py b/osc/commandline.py index 7589ab89..34dc8c7f 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1900,7 +1900,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. if len(args) < 1: raise oscerr.WrongArgs('Missing argument.') - + if len(args) > 2: + raise oscerr.WrongArgs('Wrong number of arguments.') + if len(args) == 2: package = args[1] else: