From 016e05cd9168111ff82a860614fe648cbfae6443 Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Mon, 12 Jul 2010 18:07:27 +0200 Subject: doc: unify documentation for 'ls' Signed-off-by: Robert Schwebel --- commands/ls.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'commands/ls.c') 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, -- cgit v1.2.3