From 9180a07b8fb33d5ba0b82facf987b51ca7b15dc4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 13 Apr 2021 14:57:40 -0400 Subject: command: make --verbose/--quiet available to all subcommands Add new CommonOptions entry points to move the existing --jobs to, and relocate all --verbose/--quiet options to that. This provides both a consistent interface for users as well as for code. Change-Id: Ifaf83b88872421f4749b073c472b4a67ca6c0437 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/303224 Reviewed-by: Raman Tenneti Tested-by: Mike Frysinger --- subcmds/forall.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'subcmds/forall.py') diff --git a/subcmds/forall.py b/subcmds/forall.py index f0ce97cb..4a631fb7 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py @@ -129,8 +129,6 @@ without iterating through the remaining projects. del parser.rargs[0] def _Options(self, p): - super()._Options(p) - p.add_option('-r', '--regex', dest='regex', action='store_true', help="Execute the command only on projects matching regex or wildcard expression") @@ -153,13 +151,10 @@ without iterating through the remaining projects. help='Silently skip & do not exit non-zero due missing ' 'checkouts') - g = p.add_option_group('Output') + g = p.get_option_group('--quiet') g.add_option('-p', dest='project_header', action='store_true', help='Show project headers before output') - g.add_option('-v', '--verbose', - dest='verbose', action='store_true', - help='Show command error messages') p.add_option('--interactive', action='store_true', help='force interactive usage') -- cgit v1.2.3-54-g00ecf