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 <rtenneti@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
f32f243ff8
commit
9180a07b8f
14 changed files with 41 additions and 40 deletions
2
repo
2
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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue