From 35159abbebf5453d4c9e89e570b891fb3d6c93cc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 13 Jun 2019 00:07:13 -0400 Subject: [PATCH] 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 ` calls, so lets fix `repo help` and `repo --help|-h` to match. Change-Id: Ia4f352b431c91eefef70dcafc11f00209ee69809 --- repo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo b/repo index f251a1d..c4c9786 100755 --- a/repo +++ b/repo @@ -776,8 +776,8 @@ The most commonly used repo commands are: """ help Display detailed help on a command For access to the full online help, install repo ("repo init"). -""", file=sys.stderr) - sys.exit(1) +""") + sys.exit(0) def _Help(args):