From 83cadd715783f82a279b898e0c5cd525bbbd6bb4 Mon Sep 17 00:00:00 2001 From: Juergen Weigert Date: Tue, 22 Feb 2011 19:13:59 +0100 Subject: [PATCH] 'osc rq list' now defaults to 'new,review' instead of only 'new'. Usage now mentions 'review' too. --- osc/commandline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index b8f14822..f9a7eb7b 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1604,8 +1604,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='all states. Same as\'-s all\'') @cmdln.option('-f', '--force', action='store_true', help='enforce state change, can be used to ignore open reviews') - @cmdln.option('-s', '--state', default='', # default is 'all' if no args given, 'new' otherwise - help='only list requests in one of the comma separated given states (new/accepted/revoked/declined) or "all" [default=new, or all, if no args given]') + @cmdln.option('-s', '--state', default='', # default is 'all' if no args given, 'new,review' otherwise + help='only list requests in one of the comma separated given states (new/review/accepted/revoked/declined) or "all" [default="new,review", or "all", if no args given]') @cmdln.option('-D', '--days', metavar='DAYS', help='only list requests in state "new" or changed in the last DAYS. [default=%(request_list_days)s]') @cmdln.option('-U', '--user', metavar='USER', @@ -1724,7 +1724,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. opts.state = 'all' if opts.state == '': - opts.state = 'new' + opts.state = 'new,review' if args[0] == 'help': return self.do_help(['help', 'request'])