mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
do not allow duplicate configure options
This commit is contained in:
parent
76100d0c57
commit
1b8a80a81c
1 changed files with 4 additions and 2 deletions
6
setup.py
6
setup.py
|
@ -837,8 +837,10 @@ class ArgParser():
|
|||
(opt, arg, i) = (optqueue[i], argqueue[i], i + 1)
|
||||
opt = self.optmap[opt][0]
|
||||
if (opt not in self.opts) or (self.opts[opt] is None):
|
||||
self.opts[opt] = []
|
||||
self.opts[opt].append(arg)
|
||||
self.opts[opt] = [arg]
|
||||
else:
|
||||
sys.stderr.write('%s: fatal: duplicate option %s\n' % (self.__program, arg))
|
||||
exit(-1)
|
||||
|
||||
'''
|
||||
Prints a colourful help message
|
||||
|
|
Loading…
Reference in a new issue