summaryrefslogtreecommitdiff
path: root/applets/applets.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-03 17:05:01 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-03 17:05:01 +0000
commit0f0c0b41ced8c30d382a0490719c79371260b9d1 (patch)
treed37977c030439aba3b3dd6b55c33136f8e828542 /applets/applets.c
parentc0c502e172833db872e9760e96dab55244537100 (diff)
downloadbusybox-w32-0f0c0b41ced8c30d382a0490719c79371260b9d1.tar.gz
busybox-w32-0f0c0b41ced8c30d382a0490719c79371260b9d1.tar.bz2
busybox-w32-0f0c0b41ced8c30d382a0490719c79371260b9d1.zip
Make 'busybox --help' work as expected, closing bug #1139
-Erik
Diffstat (limited to 'applets/applets.c')
-rw-r--r--applets/applets.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/applets/applets.c b/applets/applets.c
index c2ccb88fa..10b44a5fc 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -49,6 +49,13 @@ extern void show_usage(void)
49 const char *format_string; 49 const char *format_string;
50 const char *usage_string = usage_messages; 50 const char *usage_string = usage_messages;
51 int i; 51 int i;
52 /* From busybox.c */
53 extern int been_there_done_that;
54
55 if (strcmp(applet_using->name, "busybox")==0) {
56 been_there_done_that=1;
57 busybox_main(0, NULL);
58 }
52 59
53 for (i = applet_using - applets; i > 0; ) { 60 for (i = applet_using - applets; i > 0; ) {
54 if (!*usage_string++) { 61 if (!*usage_string++) {