From 7e76a8c269e3cc3cb6a466697e78f5faaba88378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Fri, 5 Jun 2009 21:45:29 +0000 Subject: [PATCH] - do_submitrequest: only support create otherwise if we call e.g. "osc sr list a new submitrequest will be created (instead of listing the reqs for ) --- osc/commandline.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index d466c674..88e43fc2 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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.')