diff options
author | Mike Frysinger <vapier@google.com> | 2019-06-13 00:07:13 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2019-06-13 13:34:54 +0000 |
commit | 35159abbebf5453d4c9e89e570b891fb3d6c93cc (patch) | |
tree | e37743ffcb92762ee8f2d92c8f6b3c92bf1c60f5 | |
parent | 24ee29e46810eb18bb01e4adc23f5055c85bbff3 (diff) | |
download | git-repo-35159abbebf5453d4c9e89e570b891fb3d6c93cc.tar.gz |
repo: standardize help behavior
Standard utilities exit normally/zero when users explicitly request
--help, and they write to stdout. Exiting non-zero & using stderr
is meant for incorrect tool usage instead. We're already doing this
for `repo help <init|gitc-init>` calls, so lets fix `repo help` and
`repo --help|-h` to match.
Change-Id: Ia4f352b431c91eefef70dcafc11f00209ee69809
-rwxr-xr-x | repo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -776,8 +776,8 @@ The most commonly used repo commands are: | |||
776 | """ help Display detailed help on a command | 776 | """ help Display detailed help on a command |
777 | 777 | ||
778 | For access to the full online help, install repo ("repo init"). | 778 | For access to the full online help, install repo ("repo init"). |
779 | """, file=sys.stderr) | 779 | """) |
780 | sys.exit(1) | 780 | sys.exit(0) |
781 | 781 | ||
782 | 782 | ||
783 | def _Help(args): | 783 | def _Help(args): |