mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-15 01:56:17 +01:00
add more warnings, pointing user to new syntax
This commit is contained in:
parent
5de58e99e2
commit
dccc2d41cb
@ -492,6 +492,15 @@ class Osc(cmdln.Cmdln):
|
|||||||
|
|
||||||
args = slash_split(args)
|
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:
|
if len(args) > 4:
|
||||||
raise oscerr.WrongArgs('Too many arguments.')
|
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'"
|
print "Command rresults is obsolete. Please use 'osc results'"
|
||||||
sys.exit(1)
|
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.alias('r')
|
||||||
@cmdln.option('-l', '--last-build', action='store_true',
|
@cmdln.option('-l', '--last-build', action='store_true',
|
||||||
help='show last build results (succeeded/failed/unknown)')
|
help='show last build results (succeeded/failed/unknown)')
|
||||||
|
Loading…
Reference in New Issue
Block a user