summaryrefslogtreecommitdiffstats
path: root/commands/menutree.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/menutree.c')
-rw-r--r--commands/menutree.c36
1 files changed, 17 insertions, 19 deletions
diff --git a/commands/menutree.c b/commands/menutree.c
index 4defa661f4..5d30b67ee5 100644
--- a/commands/menutree.c
+++ b/commands/menutree.c
@@ -32,30 +32,28 @@ static int do_menutree(int argc, char *argv[])
}
BAREBOX_CMD_HELP_START(menutree)
-BAREBOX_CMD_HELP_USAGE("menutree [OPTIONS]\n")
-"\n"
-"Create a menu from a directory structure\n"
-"Each menu entry is described by a subdirectory. Each subdirectory\n"
-"can contain the following files which further describe the entry:\n"
-"\n"
-"title - A file containing the title of the entry as shown in the menu\n"
-"box - If present, the entry is a 'bool' entry. The file contains a variable\n"
-" name from which the current state of the bool is taken from and saved\n"
-" to.\n"
-"action - if present this file contains a shell script which is executed when\n"
-" when the entry is selected.\n"
-"If neither 'box' or 'action' are present this entry is considered a submenu\n"
-"containing more entries.\n"
-"\n"
-"Options:\n"
-" -m <dir> directory where the menu starts (/env/menu)\n"
-
+BAREBOX_CMD_HELP_TEXT("Each menu entry is described by a subdirectory. Each subdirectory")
+BAREBOX_CMD_HELP_TEXT("can contain the following files which further describe the entry:")
+BAREBOX_CMD_HELP_TEXT("")
+BAREBOX_CMD_HELP_TEXT("title A file containing the title of the entry as shown in the menu")
+BAREBOX_CMD_HELP_TEXT("box If present, the entry is a 'bool' entry. The file contains a")
+BAREBOX_CMD_HELP_TEXT(" name from which the current state of the bool is taken from and saved")
+BAREBOX_CMD_HELP_TEXT(" to.")
+BAREBOX_CMD_HELP_TEXT("action if present this file contains a shell script which is executed when")
+BAREBOX_CMD_HELP_TEXT(" when the entry is selected.")
+BAREBOX_CMD_HELP_TEXT("")
+BAREBOX_CMD_HELP_TEXT("If neither 'box' or 'action' are present, this entry is considered a submenu")
+BAREBOX_CMD_HELP_TEXT("containing more entries.")
+BAREBOX_CMD_HELP_TEXT("")
+BAREBOX_CMD_HELP_TEXT("Options:")
+BAREBOX_CMD_HELP_OPT ("-m DIR", "directory where the menu starts (Default: /env/menu)")
BAREBOX_CMD_HELP_END
BAREBOX_CMD_START(menutree)
.cmd = do_menutree,
- .usage = "create a menu from a directory structure",
+ BAREBOX_CMD_DESC("create menu from directory structure")
+ BAREBOX_CMD_OPTS("[-m] DIR")
BAREBOX_CMD_GROUP(CMD_GRP_CONSOLE)
BAREBOX_CMD_HELP(cmd_menutree_help)
BAREBOX_CMD_END