1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 09:36:21 +01:00

add more warnings, pointing user to new syntax

This commit is contained in:
Adrian Schröter 2009-06-05 05:46:20 +00:00
parent 5de58e99e2
commit dccc2d41cb

View File

@ -492,6 +492,15 @@ 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 "****************************************************************"
print "* WARNING: It looks that you are using this command with a *"
print "* deprecated syntax (maybe) ! *"
print "* Please run \"osc sr --help\" to see the new syntax. *"
print "****************************************************************"
if len(args) > 4:
raise oscerr.WrongArgs('Too many arguments.')
@ -1869,6 +1878,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print "Command rresults is obsolete. Please use 'osc results'"
sys.exit(1)
@cmdln.hide(1)
def do_req(self, subcmd, opts, *args):
print "Command req is obsolete. Please use 'osc api'"
sys.exit(1)
@cmdln.alias('r')
@cmdln.option('-l', '--last-build', action='store_true',
help='show last build results (succeeded/failed/unknown)')