-O @var{option}=@var{value}
-O format=@var{format}
-O device=@{terminal|listing@}
+--no-output
-e, --error-file=@var{error-file}
@end example
output written to standard output is considered a terminal device and
other output is considered a listing device.
+@item --no-output
+Disables output entirely, if neither @option{-o} nor @option{-O} is
+also used. If one of those options is used, @option{--no-output} has
+no effect.
+
@item -e @var{error-file}
@itemx --error-file=@var{error-file}
Configures a file to receive PSPP error, warning, and note messages in
OPT_ERROR_FILE,
OPT_OUTPUT,
OPT_OUTPUT_OPTION,
+ OPT_NO_OUTPUT,
OPT_INTERACTIVE,
OPT_NO_STATRC,
OPT_HELP,
{"error-file", 'e', required_argument, OPT_ERROR_FILE},
{"output", 'o', required_argument, OPT_OUTPUT},
{NULL, 'O', required_argument, OPT_OUTPUT_OPTION},
+ {"no-output", 0, no_argument, OPT_NO_OUTPUT},
{"interactive", 'i', no_argument, OPT_INTERACTIVE},
{"no-statrc", 'r', no_argument, OPT_NO_STATRC},
{"help", 'h', no_argument, OPT_HELP},
-O OPTION=VALUE set output option to customize previous -o\n\
-O device={terminal|listing} override device type for previous -o\n\
-e, --error-file=FILE append errors, warnings, and notes to FILE\n\
+ --no-output disable default output driver\n\
Supported output formats: %s\n\
\n\
Language options:\n\
parse_output_option (to, optarg);
break;
+ case OPT_NO_OUTPUT:
+ /* Pretend that we already have an output driver, which disables adding
+ one in terminal_opts_done() when we don't already have one. */
+ to->has_output_driver = true;
+ break;
+
case OPT_INTERACTIVE:
to->syntax_mode = GETL_INTERACTIVE;
break;