output busybox help to stdout, not stderr
This commit is contained in:
parent
95d3c4503f
commit
2c12d435e5
@ -144,25 +144,25 @@ int busybox_main(int argc, char **argv)
|
|||||||
output_width -= 20;
|
output_width -= 20;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf(stderr, "%s\n\n"
|
printf("%s\n\n"
|
||||||
"Usage: busybox [function] [arguments]...\n"
|
"Usage: busybox [function] [arguments]...\n"
|
||||||
" or: [function] [arguments]...\n\n"
|
" or: [function] [arguments]...\n\n"
|
||||||
"\tBusyBox is a multi-call binary that combines many common Unix\n"
|
"\tBusyBox is a multi-call binary that combines many common Unix\n"
|
||||||
"\tutilities into a single executable. Most people will create a\n"
|
"\tutilities into a single executable. Most people will create a\n"
|
||||||
"\tlink to busybox for each function they wish to use, and BusyBox\n"
|
"\tlink to busybox for each function they wish to use and BusyBox\n"
|
||||||
"\twill act like whatever it was invoked as.\n"
|
"\twill act like whatever it was invoked as!\n"
|
||||||
"\nCurrently defined functions:\n", bb_msg_full_version);
|
"\nCurrently defined functions:\n", bb_msg_full_version);
|
||||||
|
|
||||||
while (a->name != 0) {
|
while (a->name != 0) {
|
||||||
col +=
|
col +=
|
||||||
fprintf(stderr, "%s%s", ((col == 0) ? "\t" : ", "),
|
printf("%s%s", ((col == 0) ? "\t" : ", "),
|
||||||
(a++)->name);
|
(a++)->name);
|
||||||
if (col > output_width && a->name != 0) {
|
if (col > output_width && a->name != 0) {
|
||||||
fprintf(stderr, ",\n");
|
printf(",\n");
|
||||||
col = 0;
|
col = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(stderr, "\n\n");
|
printf("\n\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user