]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scripts/yocto-bsp: Exit successfully when asking for help
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Wed, 30 Sep 2015 05:38:32 +0000 (05:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Sep 2015 14:15:18 +0000 (15:15 +0100)
When user asks for help, the command should not exit with non-zero
status (failure), so removing the non-zero value on the system exit call.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/yocto-bsp

index d26986176908f24681a601acaf442a548952a923..2d9453fbe8fde059b38177ced0bafb7ff87c745e 100755 (executable)
@@ -140,7 +140,7 @@ def main():
         if args[0] == "help":
             if len(args) == 1:
                 parser.print_help()
-                sys.exit(1)
+                sys.exit()
 
     invoke_subcommand(args, parser, yocto_bsp_help_usage, subcommands)