1 // Function to display help text
5 #include "generated/help.h"
9 #define NEWTOY(name,opt,flags) HELP_##name "\0"
11 #define OLDTOY(name,oldname,flags) "\xff" #oldname "\0"
13 #define OLDTOY(name, oldname, flags) HELP_##oldname "\0"
15 static char *help_data =
16 #include "generated/newtoys.h"
19 void show_help(FILE *out)
21 int i = toys.which-toy_list;
24 if (CFG_TOYBOX_HELP) {
27 while (i--) s += strlen(s) + 1;
28 // If it's an alias, restart search for real name
30 i = toy_find(++s)-toy_list;
33 fprintf(out, "%s", s);