This option has been present since the introduction of nbddump (commit
c4107b9a, v1.13.4), but was undocumented unless you read further into
the man page. Mentioning it in --help and in the synopsis is useful,
and will set the stage for adding other options that should be
documented.
Signed-off-by: Eric Blake <eblake(a)redhat.com>
---
dump/nbddump.pod | 2 +-
dump/dump.c | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dump/nbddump.pod b/dump/nbddump.pod
index 6f1c9b51..b05472fe 100644
--- a/dump/nbddump.pod
+++ b/dump/nbddump.pod
@@ -4,7 +4,7 @@ nbddump - hexdump the content of a disk over NBD
=head1 SYNOPSIS
- nbddump NBD
+ nbddump [-n N|--length N] NBD
C<NBD> is an NBD URI or subprocess:
diff --git a/dump/dump.c b/dump/dump.c
index 71053277..71bedf6a 100644
--- a/dump/dump.c
+++ b/dump/dump.c
@@ -65,7 +65,13 @@ usage (FILE *fp, int exitcode)
"\n"
"Hexdump the content of a disk over NBD:\n"
"\n"
-" nbddump NBD-URI | [ CMD ARGS ... ]\n"
+" nbddump [ OPTIONS ...] NBD-URI | [ CMD ARGS ... ]\n"
+"\n"
+"Options include:\n"
+" --color, --colour Force ANSI color on output to non-terminal\n"
+" --no-color, --no-colour\n"
+" Suppress ANSI color even on output to terminal\n"
+" -n LEN, --length=LEN Truncate output after LEN bytes dumped\n"
"\n"
"Other options:\n"
"\n"
--
2.48.1