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
diff --git a/main.py b/main.py
index 9abda6a..8aba2ec 100755
--- a/main.py
+++ b/main.py
@@ -257,6 +257,7 @@
git_trace2_event_log.CommandEvent(name='repo', subcommands=[name])
try:
+ cmd.CommonValidateOptions(copts, cargs)
cmd.ValidateOptions(copts, cargs)
result = cmd.Execute(copts, cargs)
except (DownloadError, ManifestInvalidRevisionError,