mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-06 15:43:39 +02: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:
@@ -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.')
|
||||
|
Reference in New Issue
Block a user