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 --- repo | 2 ++ 1 file changed, 2 insertions(+) (limited to 'repo') diff --git a/repo b/repo index 604f800b..cf9f1863 100755 --- a/repo +++ b/repo @@ -281,6 +281,8 @@ def GetParser(gitc_init=False): def InitParser(parser, gitc_init=False): """Setup the CLI parser.""" + # NB: Keep in sync with command.py:_CommonOptions(). + # Logging. group = parser.add_option_group('Logging options') group.add_option('-v', '--verbose', -- cgit v1.2.3-54-g00ecf