diff options
author | Waylan Limberg <waylan@gmail.com> | 2007-11-05 21:34:37 +0000 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2007-11-05 21:34:37 +0000 |
commit | b1d6bce7de19905d6700602dc73bc8a1e59fea30 (patch) | |
tree | c01cf219a378917ac3c443f63314ccc85c3999dd /markdown.py | |
parent | 6a80c768c9c2e16efe7d7ed6f7235131b13e60ba (diff) | |
download | markdown-b1d6bce7de19905d6700602dc73bc8a1e59fea30.tar.gz markdown-b1d6bce7de19905d6700602dc73bc8a1e59fea30.tar.bz2 markdown-b1d6bce7de19905d6700602dc73bc8a1e59fea30.zip |
Added escaping to commandline.
Diffstat (limited to 'markdown.py')
-rw-r--r-- | markdown.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown.py b/markdown.py index 1ffe9de..0b3010b 100644 --- a/markdown.py +++ b/markdown.py @@ -1837,9 +1837,9 @@ def parse_options() : parser.add_option("-v", "--verbose", action="store_const", const=INFO, dest="verbose", help="print info messages") - parser.add_option("-s", "--safe", - action="store_const", const=True, dest="safe", - help="same mode (strip user's HTML tag)") + parser.add_option("-s", "--safe", dest="safe", default=False, + metavar="SAFE_MODE", + help="same mode ('replace', 'remove' or 'escape' user's HTML tag)") parser.add_option("--noisy", action="store_const", const=VERBOSE, dest="verbose", |