diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2010-07-11 12:26:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-11-01 16:23:08 +0100 |
commit | 82b23ea679719dea90f0c8b21d6f94cd8a1e0433 (patch) | |
tree | dde95f1ecb6beccc5713d8913a8938cbaed35f97 | |
parent | 91bca347c6cef5e6aee45581e287041dcc25eb2e (diff) | |
download | barebox-82b23ea679719dea90f0c8b21d6f94cd8a1e0433.tar.gz barebox-82b23ea679719dea90f0c8b21d6f94cd8a1e0433.tar.xz |
doc: add documentation for 'crc32'
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | Documentation/commands.dox | 1 | ||||
-rw-r--r-- | commands/crc.c | 15 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Documentation/commands.dox b/Documentation/commands.dox index b065ca47f6..bc1a428a19 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 d3e08654e9..0873a1c07e 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 <file> 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 <file>", "Use file instead of memory.\n") #ifdef CONFIG_CMD_CRC_CMP -" -F <file> Use file to compare\n" +BAREBOX_CMD_HELP_OPT ("-F <file>", "Use file to compare.\n") #endif -" -v <crc> Verfify\n"; +BAREBOX_CMD_HELP_OPT ("-v <crc>", "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 - |