diff options
author | Thomas Ernstorfer <trofer@gmail.com> | 2012-04-06 13:49:30 -0300 |
---|---|---|
committer | Thomas Ernstorfer <trofer@gmail.com> | 2012-04-06 13:49:30 -0300 |
commit | 34382c23ce51111eea05a021f83c03f023232b1d (patch) | |
tree | 8bb1b81814677593d2419b46c8758176a75e53e5 | |
parent | b4b4f83027f1abe7d1105e3d9cb3a4ffb6765935 (diff) | |
download | pycco-topic/reST.tar.gz |
Minor fixes. Added global for SYNTAX_FUNC in main().topic/reST
-rw-r--r-- | pycco/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pycco/main.py b/pycco/main.py index e3c4610..096085b 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -476,6 +476,8 @@ def monitor(sources, opts): def main(): """Hook spot for the console script.""" + global SYNTAX_FUNC + parser = optparse.OptionParser() parser.add_option('-s', '--syntax', action='store', choices=['markdown', 'reST'], help='Specify markup language: markdown, reST', default='markdown') @@ -491,7 +493,7 @@ def main(): help='Watch original files and re-generate documentation on changes') opts, sources = parser.parse_args() - if syntax == 'reST': + if opts.syntax == 'reST': try: from creole.rest2html.clean_writer import rest2html except ImportError: |