From e1cba07d2ced1016c8a69fbee0eae45f4c9ef363 Mon Sep 17 00:00:00 2001 From: mdw Date: Fri, 18 Mar 2005 00:32:37 +0000 Subject: [PATCH] Document encode and decode commands. --- catsign.1 | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/catsign.1 b/catsign.1 index ab07b2a..961edc3 100644 --- a/catsign.1 +++ b/catsign.1 @@ -642,6 +642,75 @@ If no or .B \-o option is given, a signature is written to standard output. +.SS "encode" +The +.B encode +command encodes an input file according to one of the encodings +described above in +.BR ENCODINGS . +The input is read from the +.I file +given on the command line, or from standard input if none is specified. +Options provided are: +.TP +.BI "\-f, \-\-format " format +Produce output in +.IR format . +Run +.B catcrypt show enc +for a list of encoding formats. +.TP +.BI "\-b, \-\-boundary " label +Set the PEM boundary string to +.IR label ; +i.e., assuming we're encoding in PEM format, the output will have +.BI "\-\-\-\-\-BEGIN " label "\-\-\-\-\-" +at the top and +.BI "\-\-\-\-\-END " label "\-\-\-\-\-" +at the bottom. The default +.I label +is +.BR MESSAGE . +.TP +.BI "\-o, \-\-output " file +Write output to +.I file +instead of to standard output. +.SS "decode" +The +.B decode +command decodes an input file encoded according to one of the encodings +described above in +.BR ENCODINGS . +The input is read from the +.I file +given on the command line, or from standard input if none is specified. +Options provided are: +.TP +.BI "\-f, \-\-format " format +Decode input in +.IR format . +Run +.B catcrypt show enc +for a list of encoding formats. +.TP +.BI "\-b, \-\-boundary " label +Set the PEM boundary string to +.IR label ; +i.e., assuming we're encoding in PEM format, start processing input +between +.BI "\-\-\-\-\-BEGIN " label "\-\-\-\-\-" +and +.BI "\-\-\-\-\-END " label "\-\-\-\-\-" +lines. Without this option, +.B catcrypt +will start reading at the first plausible boundary string, and continue +processing until it reaches the matching end boundary. +.TP +.BI "\-o, \-\-output " file +Write output to +.I file +instead of to standard output. .SH "BUGS" The trailing-whitespace deletion doesn't work for more than 32K of whitespace. I don't think this is a big problem, really. -- 2.11.0