From dc22af0183542c2804df46d340da086c11ced76f Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 25 Aug 2022 10:01:36 +0200 Subject: [PATCH] Remove deprecated subcommands 'create', 'list', 'log', 'show', 'decline', 'accept', 'delete', 'revoke' from the 'submitrequest' command --- osc/commandline.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 113a1d3c..f1ca4470 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1248,20 +1248,6 @@ class Osc(cmdln.Cmdln): args = slash_split(args) - # remove this block later again - oldcmds = ['create', 'list', 'log', 'show', 'decline', 'accept', 'delete', 'revoke'] - if args and args[0] in oldcmds: - print("************************************************************************", file=sys.stderr) - print("* WARNING: It looks that you are using this command with a *", file=sys.stderr) - print("* deprecated syntax. *", file=sys.stderr) - print("* Please run \"osc sr --help\" and \"osc rq --help\" *", file=sys.stderr) - print("* to see the new syntax. *", file=sys.stderr) - print("************************************************************************", file=sys.stderr) - if args[0] == 'create': - args.pop(0) - else: - sys.exit(1) - if len(args) > 4: raise oscerr.WrongArgs('Too many arguments.')