diff options
-rw-r--r-- | Documentation/commands.dox | 1 | ||||
-rw-r--r-- | commands/ls.c | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/commands.dox b/Documentation/commands.dox index 17e034a780..4bcf548cb6 100644 --- a/Documentation/commands.dox +++ b/Documentation/commands.dox @@ -17,6 +17,7 @@ @li @subpage gpio_for_users @li @subpage tftp_command @li @subpage loadenv_command +@li @subpage ls_command @li @subpage mount_command @li @subpage printenv_command @li @subpage protect_command diff --git a/commands/ls.c b/commands/ls.c index a02ccfe772..2005178fbf 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -194,10 +194,11 @@ static int do_ls(struct command *cmdtp, int argc, char *argv[]) return 0; } -static const __maybe_unused char cmd_ls_help[] = -"Usage: ls [OPTION]... [FILE]...\n" -"List information about the FILEs (the current directory by default).\n" -" -R list subdirectories recursively\n"; +BAREBOX_CMD_HELP_START(ls) +BAREBOX_CMD_HELP_USAGE("ls [OPTION]... [FILE]...\n") +BAREBOX_CMD_HELP_SHORT("List information about the FILEs (the current directory by default).\n") +BAREBOX_CMD_HELP_OPT ("-R", "list subdirectories recursively\n") +BAREBOX_CMD_HELP_END BAREBOX_CMD_START(ls) .cmd = do_ls, |