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 1PSpti-0001uP-L7 for barebox@lists.infradead.org; Wed, 15 Dec 2010 11:52:01 +0000 From: Robert Schwebel Date: Wed, 15 Dec 2010 12:51:25 +0100 Message-Id: <1292413908-464-12-git-send-email-r.schwebel@pengutronix.de> In-Reply-To: <1292413908-464-1-git-send-email-r.schwebel@pengutronix.de> References: <1292413908-464-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 11/34] doc: add documentation for 'rmdir' command To: barebox@lists.infradead.org Signed-off-by: Robert Schwebel --- Documentation/commands.dox | 2 +- commands/rmdir.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/commands.dox b/Documentation/commands.dox index b0919d0..db3be1a 100644 --- a/Documentation/commands.dox +++ b/Documentation/commands.dox @@ -89,7 +89,7 @@ available in @a Barebox: @li @subpage rarpboot @li @subpage reginfo @li @subpage rm_command -@li @subpage rmdir +@li @subpage rmdir_command @li @subpage saveenv_command @li @subpage setenv_command @li @subpage sh diff --git a/commands/rmdir.c b/commands/rmdir.c index 83a0b02..0a8838b 100644 --- a/commands/rmdir.c +++ b/commands/rmdir.c @@ -21,9 +21,10 @@ static int do_rmdir(struct command *cmdtp, int argc, char *argv[]) return 0; } -static const __maybe_unused char cmd_rmdir_help[] = -"Usage: rmdir [directories]\n" -"Remove directories. The directories have to be empty.\n"; +BAREBOX_CMD_HELP_START(rmdir) +BAREBOX_CMD_HELP_USAGE("rmdir DIRECTORIES\n") +BAREBOX_CMD_HELP_SHORT("Remove directories. The directories have to be empty.\n") +BAREBOX_CMD_HELP_END BAREBOX_CMD_START(rmdir) .cmd = do_rmdir, -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox