diff options
| author | Mike Frysinger <vapier@google.com> | 2021-04-13 14:57:40 -0400 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2021-04-13 22:25:17 +0000 |
| commit | 9180a07b8fb33d5ba0b82facf987b51ca7b15dc4 (patch) | |
| tree | 4c815bea7136115bf382a1bb75b89b67bd39bd61 /subcmds/status.py | |
| parent | f32f243ff8aaabe5287235015e1ce189da0123e3 (diff) | |
| download | git-repo-9180a07b8fb33d5ba0b82facf987b51ca7b15dc4.tar.gz | |
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>
Diffstat (limited to 'subcmds/status.py')
| -rw-r--r-- | subcmds/status.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/subcmds/status.py b/subcmds/status.py index 6c8e22e5..dc223a00 100644 --- a/subcmds/status.py +++ b/subcmds/status.py | |||
| @@ -80,12 +80,9 @@ the following meanings: | |||
| 80 | PARALLEL_JOBS = DEFAULT_LOCAL_JOBS | 80 | PARALLEL_JOBS = DEFAULT_LOCAL_JOBS |
| 81 | 81 | ||
| 82 | def _Options(self, p): | 82 | def _Options(self, p): |
| 83 | super()._Options(p) | ||
| 84 | p.add_option('-o', '--orphans', | 83 | p.add_option('-o', '--orphans', |
| 85 | dest='orphans', action='store_true', | 84 | dest='orphans', action='store_true', |
| 86 | help="include objects in working directory outside of repo projects") | 85 | help="include objects in working directory outside of repo projects") |
| 87 | p.add_option('-q', '--quiet', action='store_true', | ||
| 88 | help="only print the name of modified projects") | ||
| 89 | 86 | ||
| 90 | def _StatusHelper(self, quiet, project): | 87 | def _StatusHelper(self, quiet, project): |
| 91 | """Obtains the status for a specific project. | 88 | """Obtains the status for a specific project. |
