From d4fe83d3165d27e101448bfaa8261e0c4bb72385 Mon Sep 17 00:00:00 2001 From: Richard Kettlewell Date: Wed, 15 Jun 2011 22:23:28 +0100 Subject: [PATCH] Document short-form options. --- vbig.1 | 12 ++++++------ vbig.cc | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/vbig.1 b/vbig.1 index 45b491b..11cd637 100644 --- 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 diff --git a/vbig.cc b/vbig.cc index 190dbf0..cc81de9 100644 --- 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 -- 2.30.2