diff options
author | Mike Frysinger <vapier@google.com> | 2021-07-26 23:20:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2021-07-28 05:37:27 +0000 |
commit | 968d646f046355313008bfddfbd3fde1e0e14339 (patch) | |
tree | 0dc2937e27e4a8ae1502fb89edf317269ecd936c /subcmds/help.py | |
parent | cfa00d6e3d6825cbe4390fbaaf5980cd6b1be77e (diff) | |
download | git-repo-968d646f046355313008bfddfbd3fde1e0e14339.tar.gz |
repo: refactor internal --help/--version parsing
The _ParseArgs method parses the arguments and processes some of
the options, with the rest left to the _Run method. Simplify the
_ParseArgs method to only parse arguments and have _Run handle all
actual processing.
This will make it easier to add more terminal options (ones that
exit immediately without a subcommand), and makes it easier to
understand the overall code flow.
Change-Id: I47f7274c3f2b59378fd479e403e70fb24b681536
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/312906
Reviewed-by: Xin Li <delphij@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/help.py')
0 files changed, 0 insertions, 0 deletions