aboutsummaryrefslogtreecommitdiff
path: root/lib/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/help.c')
-rw-r--r--lib/help.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/help.c b/lib/help.c
index 9ff575bc..87a3df94 100644
--- a/lib/help.c
+++ b/lib/help.c
@@ -10,7 +10,11 @@ void show_help(FILE *out) {;}
#undef NEWTOY
#undef OLDTOY
#define NEWTOY(name,opt,flags) HELP_##name "\0"
+#if CFG_TOYBOX
#define OLDTOY(name,oldname,flags) "\xff" #oldname "\0"
+#else
+#define OLDTOY(name, oldname, flags) HELP_##oldname "\0"
+#endif
static char *help_data =
#include "generated/newtoys.h"
;
@@ -25,11 +29,6 @@ void show_help(FILE *out)
while (i--) s += strlen(s) + 1;
// If it's an alias, restart search for real name
if (*s != 255) break;
- if (!CFG_TOYBOX) {
- s = xmprintf("See %s --help\n", ++s);
-
- break;
- }
i = toy_find(++s)-toy_list;
}