Synch usage() and manpage for b64encode/b64decode.

Make uudecode's usage more like that of other programs.
This commit is contained in:
jmallett 2002-05-19 11:22:54 +00:00
parent 1fb080cae2
commit 073610e016
3 changed files with 11 additions and 3 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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);
}