From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1P9KkV-0001xB-UG for barebox@lists.infradead.org; Fri, 22 Oct 2010 16:45:49 +0000 From: Robert Schwebel Date: Fri, 22 Oct 2010 18:45:16 +0200 Message-Id: <1287765924-1856-25-git-send-email-r.schwebel@pengutronix.de> In-Reply-To: <1287765924-1856-1-git-send-email-r.schwebel@pengutronix.de> References: <1287765924-1856-1-git-send-email-r.schwebel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 24/32] doc: unify documentation for 'ls' To: barebox@lists.infradead.org Signed-off-by: Robert Schwebel --- Documentation/commands.dox | 1 + commands/ls.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Documentation/commands.dox b/Documentation/commands.dox index f3b5028..63ed480 100644 --- a/Documentation/commands.dox +++ b/Documentation/commands.dox @@ -16,6 +16,7 @@ @li @subpage export_command @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 a02ccfe..2005178 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, -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox