Skip to content

Commit 65858bb

Browse files
committed
- support "review show <id>" (alias for "request show <id>")
1 parent effe383 commit 65858bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osc/commandline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,11 +1871,11 @@ def do_request(self, subcmd, opts, *args):
18711871
if args[0] == 'help':
18721872
return self.do_help(['help', 'request'])
18731873

1874-
cmds = [ 'list', 'log', 'show', 'decline', 'reopen', 'clone', 'accept', 'approvenew', 'wipe', 'setincident', 'supersede', 'revoke', 'checkout', 'co' ]
1874+
cmds = ['list', 'log', 'show', 'decline', 'reopen', 'clone', 'accept', 'approvenew', 'wipe', 'setincident', 'supersede', 'revoke', 'checkout', 'co']
18751875
if subcmd != 'review' and args[0] not in cmds:
18761876
raise oscerr.WrongArgs('Unknown request action %s. Choose one of %s.' \
18771877
% (args[0],', '.join(cmds)))
1878-
cmds = [ 'list', 'add', 'decline', 'accept', 'reopen', 'supersede' ]
1878+
cmds = ['show', 'list', 'add', 'decline', 'accept', 'reopen', 'supersede']
18791879
if subcmd == 'review' and args[0] not in cmds:
18801880
raise oscerr.WrongArgs('Unknown review action %s. Choose one of %s.' \
18811881
% (args[0],', '.join(cmds)))

0 commit comments

Comments
 (0)