output: Make default output file name depend on the format.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 24 Nov 2012 20:03:42 +0000 (12:03 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 24 Nov 2012 20:03:42 +0000 (12:03 -0800)
commit7b51bc9abbb6ed4a34cf396883d1dc8479b1e554
treef83b390f18f2ad08278f4308c1567f93305d5e00
parentb565df6228649a16c13039309978ab921aeb565c
output: Make default output file name depend on the format.

Before this commit, "-O html" caused HTML output to be written to a file
named "-", which is confusing.  After this commit, it is written to a file
named "pspp.html".  Similarly for other output drivers, except that text
and CSV output are still written to stdout by default.

Bug #35030.
Reported by John Darrington.
doc/invoking.texi
src/output/ascii.c
src/output/cairo.c
src/output/csv.c
src/output/driver-provider.h
src/output/driver.c
src/output/html.c
src/output/odt.c