aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2007-11-05 21:34:37 +0000
committerWaylan Limberg <waylan@gmail.com>2007-11-05 21:34:37 +0000
commitb1d6bce7de19905d6700602dc73bc8a1e59fea30 (patch)
treec01cf219a378917ac3c443f63314ccc85c3999dd
parent6a80c768c9c2e16efe7d7ed6f7235131b13e60ba (diff)
downloadmarkdown-b1d6bce7de19905d6700602dc73bc8a1e59fea30.tar.gz
markdown-b1d6bce7de19905d6700602dc73bc8a1e59fea30.tar.bz2
markdown-b1d6bce7de19905d6700602dc73bc8a1e59fea30.zip
Added escaping to commandline.
-rw-r--r--markdown.py6
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",