aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-23 18:22:54 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-23 18:22:54 +0200
commit907507ca8a9423d05b8f86d107c4158ceae053ea (patch)
tree537ca650a0c8e70c149218132cc9f79c820ad49e /ponysay
parent19a0fc8c8276a5df4290d890d9000c6370a3f94b (diff)
downloadponysay-907507ca8a9423d05b8f86d107c4158ceae053ea.tar.gz
ponysay-907507ca8a9423d05b8f86d107c4158ceae053ea.tar.bz2
ponysay-907507ca8a9423d05b8f86d107c4158ceae053ea.zip
some work on configurations
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay4
1 files changed, 2 insertions, 2 deletions
diff --git a/ponysay b/ponysay
index f70cb2d..4f3f19f 100755
--- a/ponysay
+++ b/ponysay
@@ -864,8 +864,8 @@ class ArgParser():
elif dashed: self.files.append(arg)
elif arg == '++': tmpdashed = True
elif arg == '--': dashed = True
- elif (len(arg) > 1) and ((arg[0] == '-') or (arg[0] == '+')):
- if (len(arg) > 2) and ((arg[:2] == '--') or (arg[:2] == '++')):
+ elif (len(arg) > 1) and (arg[0] in ('-', '+')):
+ if (len(arg) > 2) and (arg[:2] in ('--', '++')):
if dontget > 0:
dontget -= 1
elif (arg in self.optmap) and (self.optmap[arg][1] == ARGUMENTLESS):