"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/TemplateCmdLineIface.py" between
cheetah3-3.1.0.tar.gz and cheetah3-3.2.0.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

TemplateCmdLineIface.py  (cheetah3-3.1.0):TemplateCmdLineIface.py  (cheetah3-3.2.0)
skipping to change at line 37 skipping to change at line 37
def run(self): def run(self):
"""The main program controller.""" """The main program controller."""
self._processCmdLineArgs() self._processCmdLineArgs()
print(self._template) print(self._template)
def _processCmdLineArgs(self): def _processCmdLineArgs(self):
try: try:
self._opts, self._args = getopt.getopt( self._opts, self._args = getopt.getopt(
self._cmdLineArgs, 'h', ['help', 'env', 'pickle='] self._cmdLineArgs, 'h', ['help', 'env', 'pickle=']
) )
except getopt.GetoptError as v: except getopt.GetoptError as v:
# print help information and exit: # print help information and exit:
print(v) print(v)
print(self.usage()) print(self.usage())
sys.exit(2) sys.exit(2)
for o, a in self._opts: for o, a in self._opts:
if o in ('-h', '--help'): if o in ('-h', '--help'):
print(self.usage()) print(self.usage())
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)