single-applet build --help had extra \n, remove
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
37bdd8f8cb
commit
ff65355b8a
@ -123,16 +123,16 @@ void FAST_FUNC bb_show_usage(void)
|
|||||||
{
|
{
|
||||||
if (ENABLE_SHOW_USAGE) {
|
if (ENABLE_SHOW_USAGE) {
|
||||||
#ifdef SINGLE_APPLET_STR
|
#ifdef SINGLE_APPLET_STR
|
||||||
/* Imagine that this applet is "true". Dont suck in printf! */
|
/* Imagine that this applet is "true". Dont link in printf! */
|
||||||
const char *usage_string = unpack_usage_messages();
|
const char *usage_string = unpack_usage_messages();
|
||||||
|
|
||||||
if (usage_string) {
|
if (usage_string) {
|
||||||
if (*usage_string == '\b') {
|
if (*usage_string == '\b') {
|
||||||
full_write2_str("No help available.\n\n");
|
full_write2_str("No help available\n");
|
||||||
} else {
|
} else {
|
||||||
full_write2_str("Usage: "SINGLE_APPLET_STR" ");
|
full_write2_str("Usage: "SINGLE_APPLET_STR" ");
|
||||||
full_write2_str(usage_string);
|
full_write2_str(usage_string);
|
||||||
full_write2_str("\n\n");
|
full_write2_str("\n");
|
||||||
}
|
}
|
||||||
if (ENABLE_FEATURE_CLEAN_UP)
|
if (ENABLE_FEATURE_CLEAN_UP)
|
||||||
dealloc_usage_messages((char*)usage_string);
|
dealloc_usage_messages((char*)usage_string);
|
||||||
@ -149,9 +149,9 @@ void FAST_FUNC bb_show_usage(void)
|
|||||||
ap--;
|
ap--;
|
||||||
}
|
}
|
||||||
full_write2_str(bb_banner);
|
full_write2_str(bb_banner);
|
||||||
full_write2_str(" multi-call binary.\n");
|
full_write2_str(" multi-call binary.\n"); /* common string */
|
||||||
if (*p == '\b')
|
if (*p == '\b')
|
||||||
full_write2_str("\nNo help available.\n\n");
|
full_write2_str("\nNo help available\n");
|
||||||
else {
|
else {
|
||||||
full_write2_str("\nUsage: ");
|
full_write2_str("\nUsage: ");
|
||||||
full_write2_str(applet_name);
|
full_write2_str(applet_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user