1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

do not crash, if nothing is specified. (#526401)

This commit is contained in:
Adrian Schröter 2009-08-07 09:25:34 +00:00
parent 2f7070ae96
commit b25b248a2e

View File

@ -610,6 +610,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
args = slash_split(args)
if len(args) < 1:
raise oscerr.WrongArgs('Please specify at least a project.')
if len(args) > 2:
raise oscerr.WrongArgs('Too many arguments.')