diff --git a/osc/commandline.py b/osc/commandline.py index 635b768d..0c7f4e42 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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.')