X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=man%2Fdp.man8;h=caf695ea5668936a3b20d05c74086715969c1ee8;hp=274280686c47c0194d183e1866aa9d85c19323f9;hb=b6823062c9806496b39ff12bf1fbe43ae127c96c;hpb=5aaedc4256d58afe2481d667afdcb5162a914ba9 diff --git a/man/dp.man8 b/man/dp.man8 index 2742806..caf695e 100644 --- a/man/dp.man8 +++ b/man/dp.man8 @@ -10,11 +10,7 @@ dp \- parse dates 822-style .B %libdir%/dp .RB [ \-form .IR formatfile ] -.RB [ \-format -.IR string ] -.RB [ \-width -.IR columns ] -.RB [ \-version ] +.RB [ \-Version ] .RB [ \-help ] .I dates \&... @@ -26,7 +22,7 @@ It also understands many non\-standard formats, such as those produced by TOPS\-20 sites and some UNIX sites using .BR ctime (3). It is useful for seeing how -.B nmh +.B mmh will interpret a date. .PP The @@ -39,14 +35,14 @@ shell. To override the output format used by .BR dp , the -.B \-format -.I string -or -.B \-format +.B \-form .I file -switches are used. +switch is used. This permits individual fields of the address to be extracted with ease. -The string is simply a format string and the file is simply a format file. +The +.I file +is either the name of a format file or +a format string directly, if prepended with an equal sign `='. See .BR mh\-format (5) for the details. @@ -55,7 +51,9 @@ Here is the default format string used by .BR dp : .PP .RS 5 +.nf %<(nodate{text})error: %{text}%|%(putstr(pretty{text}))%> +.fi .RE .PP which says that if an error was detected, print the error, a `:', @@ -79,16 +77,8 @@ ap(8), .SH DEFAULTS .nf -.RB ` \-format "' default as described above" -.RB ` \-width "' default to the width of the terminal" +.RB ` \-form "' default as described above" .fi .SH CONTEXT None - -.SH BUGS -The argument to the -.B \-format -switch must be interpreted as a single token by the shell that invokes -.BR dp . -Therefore, one must usually place the argument to this switch inside double\-quotes.