diff options
| author | 2018-01-10 18:28:57 +0100 | |
|---|---|---|
| committer | 2019-05-10 18:01:57 +0200 | |
| commit | 2fa603e47433b6377397c635553623845d2d731c (patch) | |
| tree | 0bf7bae235d6148f09bbb589d7418ca2e0822918 /src | |
| parent | bd967df818c1d385d72c959ab2c3e24ddf5d0709 (diff) | |
| download | tweetpipe-2fa603e47433b6377397c635553623845d2d731c.tar.gz | |
Refine usage message
- Synthesized usage lines.
- Documented both short and long options.
Diffstat (limited to 'src')
| -rw-r--r-- | src/encpipe.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/encpipe.c b/src/encpipe.c index e0f206d..cd06e35 100644 --- a/src/encpipe.c +++ b/src/encpipe.c @@ -11,12 +11,19 @@ static void usage(void) { puts( - "Usage:\n\n" - "Encrypt: encpipe -e -p <password> [-i <inputfile>] [-o <outputfile>]\n" - " encpipe -e -P <password file> [-i <inputfile>] [-o <outputfile>]\n\n" - "Decrypt: encpipe -d -p <password> [-i <inputfile>] [-o <outputfile>]\n" - " encpipe -d -P <password file> [-i <inputfile>] [-o <outputfile>]\n\n" - "Passgen: encpipe -G\n"); + "Usage:\n" + " encpipe -G\n" + " encpipe {-e | -d} {-p <string> | -P <file>} [-i <file>] [-o <file>]\n" + "\n" + "Options:\n" + " -G, --passgen generate a random password\n" + " -e, --encrypt encryption mode\n" + " -d, --decrypt decryption mode\n" + " -p, --pass <password> use <password>\n" + " -P, --passfile <file> read password from <file>\n" + " -i, --in <file> read input from <file>\n" + " -o, --out <file> write output to <file>\n" + " -h, --help print this message"); exit(0); } |