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:
parent
18273d470b
commit
7e76a8c269
@ -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.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user