aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-22 02:19:01 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-22 02:19:01 +0000
commitd56d67e62e80b78e658f4334896f571cd34734ab (patch)
tree55823772b82f31a8d047a76a80e467619a4f0655
parent323fdb7bbd4643d97d114c94a0a1aa1b89538fe3 (diff)
downloadbusybox-w32-d56d67e62e80b78e658f4334896f571cd34734ab.tar.gz
busybox-w32-d56d67e62e80b78e658f4334896f571cd34734ab.tar.bz2
busybox-w32-d56d67e62e80b78e658f4334896f571cd34734ab.zip
output busybox help to stdout, not stderr
git-svn-id: svn://busybox.net/trunk/busybox@10150 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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