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-0007o8-9o for barebox@lists.infradead.org; Mon, 01 Nov 2010 08:34:04 +0000 From: Robert Schwebel Date: Mon, 1 Nov 2010 09:33:38 +0100 Message-Id: <1288600434-6112-6-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 05/21] doc: add documentation for 'crc32' To: barebox@lists.infradead.org Signed-off-by: Robert Schwebel --- Documentation/commands.dox | 1 + commands/crc.c | 15 +++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/commands.dox b/Documentation/commands.dox index b065ca4..bc1a428 100644 --- a/Documentation/commands.dox +++ b/Documentation/commands.dox @@ -7,6 +7,7 @@ @li @subpage cd_command @li @subpage clear_command @li @subpage cp_command +@li @subpage crc_command @li @subpage delpart_command @li @subpage devinfo_command @li @subpage edit_command diff --git a/commands/crc.c b/commands/crc.c index d3e0865..0873a1c 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -143,19 +143,18 @@ static int do_crc(struct command *cmdtp, int argc, char *argv[]) return err; } -static const __maybe_unused char cmd_crc_help[] = -"Usage: crc32 [OPTION] [AREA]\n" -"Calculate a crc32 checksum of a memory area\n" -"Options:\n" -" -f Use file instead of memory\n" +BAREBOX_CMD_HELP_START(crc) +BAREBOX_CMD_HELP_USAGE("crc32 [OPTION] [AREA]\n") +BAREBOX_CMD_HELP_SHORT("Calculate a crc32 checksum of a memory area.\n") +BAREBOX_CMD_HELP_OPT ("-f ", "Use file instead of memory.\n") #ifdef CONFIG_CMD_CRC_CMP -" -F Use file to compare\n" +BAREBOX_CMD_HELP_OPT ("-F ", "Use file to compare.\n") #endif -" -v Verfify\n"; +BAREBOX_CMD_HELP_OPT ("-v ", "Verfify\n") +BAREBOX_CMD_HELP_END BAREBOX_CMD_START(crc32) .cmd = do_crc, .usage = "crc32 checksum calculation", BAREBOX_CMD_HELP(cmd_crc_help) BAREBOX_CMD_END - -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox