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/init.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subcmds/init.py') diff --git a/subcmds/init.py b/subcmds/init.py index a23e529d..4182262e 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -79,6 +79,9 @@ manifest, a subsequent `repo sync` (or `repo sync -d`) is necessary to update the working directory files. """ + def _CommonOptions(self, p): + """Disable due to re-use of Wrapper().""" + def _Options(self, p, gitc_init=False): Wrapper().InitParser(p, gitc_init=gitc_init) @@ -436,9 +439,6 @@ to update the working directory files. % ('.'.join(str(x) for x in MIN_GIT_VERSION_SOFT),), file=sys.stderr) - opt.quiet = opt.output_mode is False - opt.verbose = opt.output_mode is True - rp = self.manifest.repoProject # Handle new --repo-url requests. -- cgit v1.2.3-54-g00ecf