aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-08-05 12:48:55 -0400
committerWaylan Limberg <waylan@gmail.com>2008-08-05 12:48:55 -0400
commit7f75d6380955f7c75b77914a41893fa99eed4348 (patch)
tree3f1f36a5fbb43820513c17b999022efce3e43bab /markdown.py
parent5cee3a1f7b74029b3b77b2c48f757b4afd49bd1f (diff)
downloadmarkdown-7f75d6380955f7c75b77914a41893fa99eed4348.tar.gz
markdown-7f75d6380955f7c75b77914a41893fa99eed4348.tar.bz2
markdown-7f75d6380955f7c75b77914a41893fa99eed4348.zip
Added commandline script and updated CHANGE_LOG and MANIFEST.
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py7
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