From 28130e430531fde1fe24e7775a980b83707c0ad0 Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Sun, 19 May 2002 11:22:54 +0000 Subject: [PATCH] Synch usage() and manpage for b64encode/b64decode. Make uudecode's usage more like that of other programs. --- usr.bin/uudecode/uudecode.c | 7 +++++-- usr.bin/uuencode/uuencode.1 | 3 +++ usr.bin/uuencode/uuencode.c | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index e1a135a79622..121f57a84810 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -352,7 +352,10 @@ base64_decode(const char *stream) static void usage(void) { - (void)fprintf(stderr, "usage: uudecode [-cips] [file ...]\n"); - (void)fprintf(stderr, "usage: uudecode [-i] -o output_file [file]\n"); + (void)fprintf(stderr, +"usage: uudecode [-cips] [file ...]\n" +" uudecode [-i] -o output_file [file]\n" +" b64decode [-cips] [file ...]\n" +" b64decode [-i] -o output_file [file]\n"); exit(1); } diff --git a/usr.bin/uuencode/uuencode.1 b/usr.bin/uuencode/uuencode.1 index c26e2c3a181d..0fe44cdd0a57 100644 --- a/usr.bin/uuencode/uuencode.1 +++ b/usr.bin/uuencode/uuencode.1 @@ -58,6 +58,9 @@ .Op Ar file .Ar name .Nm b64decode +.Op Fl cips +.Op Ar +.Nm b64decode .Op Fl i .Fl o Ar output_file .Op Ar file diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c index 1e6c6530fc65..5461d0e385d7 100644 --- a/usr.bin/uuencode/uuencode.c +++ b/usr.bin/uuencode/uuencode.c @@ -219,6 +219,8 @@ encode(void) static void usage(void) { - (void)fprintf(stderr,"usage: uuencode [-m] [-o outfile] [infile] remotefile\n"); + (void)fprintf(stderr, +"usage: uuencode [-m] [-o outfile] [infile] remotefile\n" +" b64encode [-o outfile] [infile] remotefile\n"); exit(1); }