From f6e03e424ad21f86368606cca65448f75d1e1ecf Mon Sep 17 00:00:00 2001 From: Martin Vilcans Date: Mon, 28 Nov 2011 01:48:08 +0100 Subject: Removed support for txt and pdf output from command line. It doesn't work, so avoid confusion. See bug #1. --- screenplain/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/screenplain/main.py b/screenplain/main.py index c005504..118de59 100644 --- a/screenplain/main.py +++ b/screenplain/main.py @@ -12,7 +12,7 @@ from optparse import OptionParser from screenplain.parsers.spmd import parse output_formats = ( - 'text', 'pdf', 'fdx', 'html' + 'fdx', 'html' ) usage = 'Usage: %prog [options] input-file output-file' @@ -41,9 +41,7 @@ def main(args): input_file, output_file = args if options.output_format == None: - if output_file.endswith('.pdf'): - options.output_format = 'pdf' - elif output_file.endswith('.fdx'): + if output_file.endswith('.fdx'): options.output_format = 'fdx' elif output_file.endswith('.html'): options.output_format = 'html' -- cgit