diff options
Diffstat (limited to 'markdown.py')
-rwxr-xr-x | markdown.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/markdown.py b/markdown.py index 8eafa31..d339965 100755 --- a/markdown.py +++ b/markdown.py @@ -2189,14 +2189,15 @@ def parse_options(): 'extensions': options.extensions, 'encoding': options.encoding } -if __name__ == '__main__': +def main(): """ Run Markdown from the command line. """ options = parse_options() - #if os.access(inFile, os.R_OK): - if not options: sys.exit(0) markdownFromFile(**options) + +if __name__ == '__main__': + main()
\ No newline at end of file |