1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-25 11:42:12 +01:00

- do_submitrequest: only support create otherwise if we call e.g. "osc sr list <project> a new submitrequest will be created (instead of listing the reqs for <project>)

This commit is contained in:
Marcus Hüwe 2009-06-05 21:45:29 +00:00
parent 18273d470b
commit 7e76a8c269

View File

@ -500,6 +500,10 @@ class Osc(cmdln.Cmdln):
print "* deprecated syntax (maybe) ! *"
print "* Please run \"osc sr --help\" to see the new syntax. *"
print "****************************************************************"
if args[0] == 'create':
args.pop(0)
else:
sys.exit(1)
if len(args) > 4:
raise oscerr.WrongArgs('Too many arguments.')