Commit b855ba1a b855ba1aeb167804972f5553fab53cb9c69211d9 by Sergey Poznyakoff

(mimeview): Documented new options

1 parent a103f4b1
...@@ -3337,6 +3337,31 @@ $HOME/.mailcap:/usr/local/etc/mailcap:\ ...@@ -3337,6 +3337,31 @@ $HOME/.mailcap:/usr/local/etc/mailcap:\
3337 The following table summarizes options specific for @command{mimeview}: 3337 The following table summarizes options specific for @command{mimeview}:
3338 3338
3339 @table @option 3339 @table @option
3340 @item -a[@var{type-list}]
3341 @itemx --no-ask[=@var{type-list}]
3342 By default @command{mimeview} asks for comnfirmation before running
3343 interpreter to view a message. If this option is used without
3344 argument, it disables the default behavior for all message
3345 types. Otherwise, if argument @var{type-list} is given, it specifies
3346 a comma-separated list of MIME types for which no questions should be
3347 asked. Elements of this list may include shell-style globbing
3348 patterns, e.g. setting
3349
3350 @smallexample
3351 --no-ask='text/*,image/jpeg'
3352 @end smallexample
3353
3354 @noindent
3355 will disable prompting before displaying any textual files, no
3356 matter what their subtype is, and before displaying files with
3357 type @samp{image/jpeg}.
3358
3359 Notice, that when the long form is used, its argument
3360 must be separated from the option by a single equal sign, as shown
3361 in the example above. When the short form (@option{-a}) is used, its argument
3362 must follow the option immediately, without any intervening whitespace,
3363 e.g. @option{-a'text/*'}).
3364
3340 @item -d[@var{flags}] 3365 @item -d[@var{flags}]
3341 @itemx --debug[=@var{flags}] 3366 @itemx --debug[=@var{flags}]
3342 Enables debugging output. @var{Flags} is a sequence of characters 3367 Enables debugging output. @var{Flags} is a sequence of characters
...@@ -3373,6 +3398,28 @@ Run @command{metamail} to display files, instead of using the internal ...@@ -3373,6 +3398,28 @@ Run @command{metamail} to display files, instead of using the internal
3373 mechanisms. If @var{file} is specified, it is taken as 3398 mechanisms. If @var{file} is specified, it is taken as
3374 @command{metamail} command line. 3399 @command{metamail} command line.
3375 3400
3401 @item -h
3402 @itemx --no-interactive
3403 @itemx --print
3404 This options tells @command{mimeview} that it should run in
3405 non-interactive mode. In this mode prompting is disabled, and
3406 the normal mailcap @code{command} field is not executed. Instead
3407 @command{mimeview} will execute the command specified in
3408 the @code{print} field. If there is nothing in the print field,
3409 the mailcap entry is ignored and the search continues for a matching
3410 mailcap entry that does have a @code{print} field.
3411
3412 Notice, that unlike in @command{metamail -h}, this option does
3413 not force @command{mimeview} to send the output to the printer
3414 daemon.
3415
3416 When used with @option{--metamail} option, this option passes
3417 @option{-h} flag to the invocation of @command{metamail}.
3418
3419 By default @command{mimeview} behaves as if given
3420 @option{--no-interactive} option whenever its standard input is not
3421 a @asis{tty} device.
3422
3376 @item -n 3423 @item -n
3377 @itemx --dry-run 3424 @itemx --dry-run
3378 Do not do anything, just print what whould be done. Implies 3425 Do not do anything, just print what whould be done. Implies
......