mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 12:12:11 +01:00
remove broken -l option to osc sr
This commit is contained in:
parent
098ec5b861
commit
048c479a3e
@ -666,8 +666,6 @@ class Osc(cmdln.Cmdln):
|
||||
help='never touch source package on accept (will break source links)')
|
||||
@cmdln.option('-d', '--diff', action='store_true',
|
||||
help='show diff only instead of creating the actual request')
|
||||
@cmdln.option('-l', '--list', action='store_true',
|
||||
help='show submitrequests. Same as \'osc req list -M -a -t submit -D 0\'')
|
||||
@cmdln.option('--yes', action='store_true',
|
||||
help='proceed without asking.')
|
||||
@cmdln.alias("sr")
|
||||
@ -688,17 +686,6 @@ class Osc(cmdln.Cmdln):
|
||||
${cmd_option_list}
|
||||
"""
|
||||
|
||||
if opts.list:
|
||||
opts.state = ""
|
||||
opts.user = ""
|
||||
opts.all = True
|
||||
opts.brief = False
|
||||
opts.unified = False
|
||||
opts.type = "submit"
|
||||
opts.mine = True
|
||||
opts.days = conf.config['request_list_days']
|
||||
return self.do_request('list', opts, *args)
|
||||
|
||||
src_update = conf.config['submitrequest_on_accept_action'] or None
|
||||
# we should check here for home:<id>:branch and default to update, but that would require OBS 1.7 server
|
||||
if opts.cleanup:
|
||||
@ -715,10 +702,9 @@ class Osc(cmdln.Cmdln):
|
||||
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\" and \"osc req --help\" *"
|
||||
print "* deprecated syntax. *"
|
||||
print "* Please run \"osc sr --help\" and \"osc rq --help\" *"
|
||||
print "* to see the new syntax. *"
|
||||
print "* E.g. \"osc sr -l\" is shortcut for \"osc req list -M -a -t submit -D 0\" *"
|
||||
print "************************************************************************"
|
||||
if args[0] == 'create':
|
||||
args.pop(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user