aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-05-15 20:34:14 +0000
committerRob Austein <sra@hactrn.net>2012-05-15 20:34:14 +0000
commitc914bdc450530fd1bbc156ff3281750e43a1e6f9 (patch)
treeedf4bc5f568cd91962c4bc7a9cb86577f56dcf68
parent30e1c0f4e55bc472ab6802afa1020fae64e530e9 (diff)
Fencepost error parsing options.
svn path=/trunk/; revision=4493
-rw-r--r--rcynic/rcynic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rcynic/rcynic.py b/rcynic/rcynic.py
index 970eb767..3cb4c6ff 100644
--- a/rcynic/rcynic.py
+++ b/rcynic/rcynic.py
@@ -68,7 +68,7 @@ try:
if o in ("-?", "-h", "--help"):
usage(0)
negated = o.startswith("--no-")
- o = o[6:] if negated else o[2:]
+ o = o[5:] if negated else o[2:]
if isinstance(opt[o], bool):
opt[o] = not negated
elif isinstance(opt[o], int):