chiark / gitweb /
Document short-form options.
authorRichard Kettlewell <rjk@greenend.org.uk>
Wed, 15 Jun 2011 21:23:28 +0000 (22:23 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Wed, 15 Jun 2011 21:23:28 +0000 (22:23 +0100)
vbig.1
vbig.cc

diff --git a/vbig.1 b/vbig.1
index 45b491b81fdb8ae7d994ae65f5094adc8cd9bf44..11cd637d02905f82d0798cbeea2f25ada8796281 100644 (file)
--- a/vbig.1
+++ b/vbig.1
@@ -17,27 +17,27 @@ say on the tin.
 kilobytes, megabytes or gigabytes.
 .SH OPTIONS
 .TP
-.B --seed
+.B --seed\fR, \fB-s \fISEED
 Specifies the random seed to use.
 Optional.
 .TP
-.B --create
+.B --create\fR, \fB-c
 Selects create mode.
 \fIPATH\fR will be filled with \fISIZE\fR psuedo-random bytes.
 .TP
-.B --verify
+.B --verify\fR, \fB-v
 Selects verify mode.
 Checks that \fIPATH\fR has exactly the contents that would be produced
 by the equivalent \fB--create\fR call.
 .TP
-.B --flush
+.B --flush\fR, \fB-f
 Flush cached data after creating the file or before verifying it.
 Only root can use this option.
 .TP
-.B --help
+.B --help\fR, \fB-h
 Displays a usage message.
 .TP
-.B --version
+.B --version\fR, \fB-h
 Displays the version strings.
 .SH AUTHOR
 Richard Kettlewell <rjk@greenend.org.uk>
diff --git a/vbig.cc b/vbig.cc
index 190dbf0254ee4c30a804d27e8e3082d58bc8ed31..cc81de96ba340e005a5f0ec92982ff2da8246603 100644 (file)
--- a/vbig.cc
+++ b/vbig.cc
@@ -31,12 +31,12 @@ static void help(void) {
          "  vbig [--seed SEED] --verify|--create PATH SIZE\n"
          "\n"
          "Options:\n"
-         "  --seed         Specify random seed\n"
-         "  --verify       Verify that PATH contains the expected contents\n"
-         "  --create       Create PATH with psuedo-random contents\n"
-         "  --flush        Flush cache\n"
-         "  --help         Display usage message\n"
-         "  --version      Display version string\n");
+         "  --seed, -s     Specify random seed\n"
+         "  --verify, -v   Verify that PATH contains the expected contents\n"
+         "  --create, -c   Create PATH with psuedo-random contents\n"
+         "  --flush, -f    Flush cache\n"
+         "  --help, -h     Display usage message\n"
+         "  --version, -V  Display version string\n");
 }
 
 // Possible modes of operation