changeset 12:a6fd93354f23

add options for starting and ending braces (unused)
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 15 Nov 2010 07:55:45 -0800
parents dac04742996b
children 99588f138993
files makeitso/makeitso.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/makeitso.py	Thu Nov 11 18:33:42 2010 -0800
+++ b/makeitso/makeitso.py	Mon Nov 15 07:55:45 2010 -0800
@@ -9,7 +9,12 @@
 import sys
 
 from optparse import OptionParser
-from tempita import Template
+
+
+try:
+    import tempita
+except ImportError:
+    raise NotImplementedError
 
 # URL of this file
 location = 'http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py'
@@ -94,6 +99,10 @@
     # create option parser
     usage = '%prog [options] template <template> <...>'
     parser = OptionParser(usage, description=__doc__)
+    parser.add_option('-[', '--start-braces', dest='start_braces',
+                      help='starting delimeter')
+    parser.add_option('-]', '--end-braces', dest='end_braces',
+                      help='starting delimeter')
     parser.add_option('--commandline', dest='commandline',
                       action='store_true', default=False,
                       help="print the commandline to invoke this script TTW")