From d3fd537ea59272e2141ccee839400a93c0196e36 Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Mon, 3 Jan 2011 11:35:15 +0100 Subject: [PATCH] Exit with statuscode 0 for repo help init The complete help text is printed, so the program executed successfully. Some tools (like OpenGrok) detects the availibility of a program by running it with a known set of options and check the return code. It is an easy and portable way of checking for the existence of a program instead of searching the path (and handle extensions) ourselves. Change-Id: Ic13428c77be4a36d599ccb8c86d893308818eae3 --- repo | 1 + 1 file changed, 1 insertion(+) diff --git a/repo b/repo index bdc05c3b..6f2067ea 100755 --- a/repo +++ b/repo @@ -479,6 +479,7 @@ def _Help(args): if args: if args[0] == 'init': init_optparse.print_help() + sys.exit(0) else: print >>sys.stderr,\ "error: '%s' is not a bootstrap command.\n"\