make --help return exitcode 0. Closes 5612
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		| @@ -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 | //TODO: just compare applet_no with APPLET_NO_test | ||||||
| 		if (!ENABLE_TEST || strcmp(applet_name, "test") != 0) { | 		if (!ENABLE_TEST || strcmp(applet_name, "test") != 0) { | ||||||
| 			/* If you want "foo --help" to return 0: */ | 			/* If you want "foo --help" to return 0: */ | ||||||
| 			/*xfunc_error_retval = 0;*/ | 			xfunc_error_retval = 0; | ||||||
| 			bb_show_usage(); | 			bb_show_usage(); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user