make --help return exitcode 0. Closes 5612
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 28 Feb 2013 11:34:18 +0000 (12:34 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 28 Feb 2013 11:34:18 +0000 (12:34 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c

index 67df44690b358b7745480b5f302c8b46fb6d6c5a..c22686e55df8b6bdc40a942b45f6a8734b89aec2 100644 (file)
@@ -750,7 +750,7 @@ void FAST_FUNC run_applet_no_and_exit(int applet_no, char **argv)
 //TODO: just compare applet_no with APPLET_NO_test
                if (!ENABLE_TEST || strcmp(applet_name, "test") != 0) {
                        /* If you want "foo --help" to return 0: */
-                       /*xfunc_error_retval = 0;*/
+                       xfunc_error_retval = 0;
                        bb_show_usage();
                }
        }