diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-08-23 18:22:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-08-23 18:22:54 +0200 |
commit | 907507ca8a9423d05b8f86d107c4158ceae053ea (patch) | |
tree | 537ca650a0c8e70c149218132cc9f79c820ad49e /ponysay | |
parent | 19a0fc8c8276a5df4290d890d9000c6370a3f94b (diff) | |
download | ponysay-907507ca8a9423d05b8f86d107c4158ceae053ea.tar.gz ponysay-907507ca8a9423d05b8f86d107c4158ceae053ea.tar.bz2 ponysay-907507ca8a9423d05b8f86d107c4158ceae053ea.zip |
some work on configurations
Diffstat (limited to 'ponysay')
-rwxr-xr-x | ponysay | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |