summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2019-06-13 00:07:13 -0400
committerMike Frysinger <vapier@google.com>2019-06-13 13:34:54 +0000
commit35159abbebf5453d4c9e89e570b891fb3d6c93cc (patch)
treee37743ffcb92762ee8f2d92c8f6b3c92bf1c60f5
parent24ee29e46810eb18bb01e4adc23f5055c85bbff3 (diff)
downloadgit-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-xrepo4
1 files changed, 2 insertions, 2 deletions
diff --git a/repo b/repo
index f251a1da..c4c97860 100755
--- a/repo
+++ b/repo
@@ -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
778For access to the full online help, install repo ("repo init"). 778For 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
783def _Help(args): 783def _Help(args):