diff options
author | Jules Maselbas <jmaselbas@kalray.eu> | 2021-11-02 14:22:47 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-04 20:46:16 +0100 |
commit | 29730fbcf3182a1bc7a41fd896e855f42d481cf7 (patch) | |
tree | cc8f8ea11e77f22d28a88a28845fd04954007fd1 /commands/md.c | |
parent | 1d6f38f32342345c7930f9ca1983b908f1d5a2d3 (diff) | |
download | barebox-29730fbcf3182a1bc7a41fd896e855f42d481cf7.tar.gz barebox-29730fbcf3182a1bc7a41fd896e855f42d481cf7.tar.xz |
memory commands: Improve command documentation
The quad write flags was missing from memory command usage.
Make the -s/-d options expecting an argument more clean from the usage line.
Reword some command help to make them more easier to use. For instance the
memcpy command help was a bit misleading on the uses for SRC/DEST with a
source/dest file. Some users were being confused by SRC/DEST being offsets.
Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
Link: https://lore.barebox.org/20211102132247.24080-1-jmaselbas@kalray.eu
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/md.c')
-rw-r--r-- | commands/md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/md.c b/commands/md.c index d80c7cca0c..7a96634e27 100644 --- a/commands/md.c +++ b/commands/md.c @@ -88,7 +88,7 @@ out: BAREBOX_CMD_HELP_START(md) -BAREBOX_CMD_HELP_TEXT("Display (hex dump) a memory region.") +BAREBOX_CMD_HELP_TEXT("Display (hex dump) a memory REGION.") BAREBOX_CMD_HELP_TEXT("") BAREBOX_CMD_HELP_TEXT("Options:") BAREBOX_CMD_HELP_OPT ("-b", "byte access") @@ -108,7 +108,7 @@ BAREBOX_CMD_HELP_END BAREBOX_CMD_START(md) .cmd = do_mem_md, BAREBOX_CMD_DESC("memory display") - BAREBOX_CMD_OPTS("[-bwlsx] REGION") + BAREBOX_CMD_OPTS("[-bwlqx] [-s FILE] REGION") BAREBOX_CMD_GROUP(CMD_GRP_MEM) BAREBOX_CMD_HELP(cmd_md_help) BAREBOX_CMD_END |