aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-22 02:19:01 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-22 02:19:01 +0000
commit2c12d435e5ccd402f6210827df0b2038093fbcee (patch)
tree55823772b82f31a8d047a76a80e467619a4f0655
parent95d3c4503fa8c4f4289b81f50f52657e112e0234 (diff)
downloadbusybox-w32-2c12d435e5ccd402f6210827df0b2038093fbcee.tar.gz
busybox-w32-2c12d435e5ccd402f6210827df0b2038093fbcee.tar.bz2
busybox-w32-2c12d435e5ccd402f6210827df0b2038093fbcee.zip
output busybox help to stdout, not stderr
-rw-r--r--applets/busybox.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index dbb5e176b..ee74b4c18 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -144,25 +144,25 @@ int busybox_main(int argc, char **argv)
144 output_width -= 20; 144 output_width -= 20;
145#endif 145#endif
146 146
147 fprintf(stderr, "%s\n\n" 147 printf("%s\n\n"
148 "Usage: busybox [function] [arguments]...\n" 148 "Usage: busybox [function] [arguments]...\n"
149 " or: [function] [arguments]...\n\n" 149 " or: [function] [arguments]...\n\n"
150 "\tBusyBox is a multi-call binary that combines many common Unix\n" 150 "\tBusyBox is a multi-call binary that combines many common Unix\n"
151 "\tutilities into a single executable. Most people will create a\n" 151 "\tutilities into a single executable. Most people will create a\n"
152 "\tlink to busybox for each function they wish to use, and BusyBox\n" 152 "\tlink to busybox for each function they wish to use and BusyBox\n"
153 "\twill act like whatever it was invoked as.\n" 153 "\twill act like whatever it was invoked as!\n"
154 "\nCurrently defined functions:\n", bb_msg_full_version); 154 "\nCurrently defined functions:\n", bb_msg_full_version);
155 155
156 while (a->name != 0) { 156 while (a->name != 0) {
157 col += 157 col +=
158 fprintf(stderr, "%s%s", ((col == 0) ? "\t" : ", "), 158 printf("%s%s", ((col == 0) ? "\t" : ", "),
159 (a++)->name); 159 (a++)->name);
160 if (col > output_width && a->name != 0) { 160 if (col > output_width && a->name != 0) {
161 fprintf(stderr, ",\n"); 161 printf(",\n");
162 col = 0; 162 col = 0;
163 } 163 }
164 } 164 }
165 fprintf(stderr, "\n\n"); 165 printf("\n\n");
166 exit(0); 166 exit(0);
167 } 167 }
168 168