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 canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PCpq5-0007oC-Ra for barebox@lists.infradead.org; Mon, 01 Nov 2010 08:34:07 +0000 From: Robert Schwebel Date: Mon, 1 Nov 2010 09:33:42 +0100 Message-Id: <1288600434-6112-10-git-send-email-r.schwebel@pengutronix.de> In-Reply-To: <1288600434-6112-1-git-send-email-r.schwebel@pengutronix.de> References: <1288600434-6112-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 09/21] doc: unify documentation for 'cd' To: barebox@lists.infradead.org Signed-off-by: Robert Schwebel --- commands/cd.c | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) diff --git a/commands/cd.c b/commands/cd.c index a842f4d..d73be32 100644 --- a/commands/cd.c +++ b/commands/cd.c @@ -47,21 +47,14 @@ static int do_cd(struct command *cmdtp, int argc, char *argv[]) return 0; } -static const __maybe_unused char cmd_cd_help[] = -"Usage: cd [directory]\n" -"change to directory. If called without argument, change to /\n"; +BAREBOX_CMD_HELP_START(cd) +BAREBOX_CMD_HELP_USAGE("cd [directory]\n") +BAREBOX_CMD_HELP_SHORT("Change to directory.\n") +BAREBOX_CMD_HELP_TEXT ("If called without an argument, change to the root directory /.\n") +BAREBOX_CMD_HELP_END BAREBOX_CMD_START(cd) .cmd = do_cd, .usage = "change working directory", BAREBOX_CMD_HELP(cmd_cd_help) BAREBOX_CMD_END - -/** - * @page cd_command cd (change working directory) - * - * Usage is: cd [\] - * - * Change to \. If called without argument, change to \b / - * (root) - */ -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox