diff options
Diffstat (limited to 'lib/help.c')
-rw-r--r-- | lib/help.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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; } |