aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2011-11-28 01:48:08 +0100
committerMartin Vilcans <martin@librador.com>2011-11-28 01:52:32 +0100
commitf6e03e424ad21f86368606cca65448f75d1e1ecf (patch)
tree483cf717bfbb7d5b4b580285fded2e2021813ad0
parentc905367fa8befa4998926e2a1bf3a8bce968e8d2 (diff)
downloadscreenplain-f6e03e424ad21f86368606cca65448f75d1e1ecf.tar.gz
Removed support for txt and pdf output from command line.
It doesn't work, so avoid confusion. See bug #1.
-rw-r--r--screenplain/main.py6
1 files 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'