From efd0698f74caab0a0c8a51228b923ee142e8e278 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 28 Feb 2013 12:34:18 +0100 Subject: [PATCH] make --help return exitcode 0. Closes 5612 Signed-off-by: Denys Vlasenko --- libbb/appletlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 67df44690..c22686e55 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -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(); } } -- 2.25.1