mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Fixed for recurring options
This commit is contained in:
parent
6845f32f39
commit
65ebdad2a3
1 changed files with 3 additions and 3 deletions
|
@ -283,9 +283,9 @@ class Argparse(Configs):
|
|||
if opt[0] == '-' and opt in self.options:
|
||||
if self.flags.count(opt) > 1:
|
||||
repeat.append(opt)
|
||||
if len(opt) > 2:
|
||||
if opt == self.options[self.options.index(opt)]:
|
||||
repeat.append(opt)
|
||||
if opt[:2] == '--':
|
||||
if opt == self.options[self.options.index(opt)]:
|
||||
repeat.append(opt)
|
||||
|
||||
# Fixed for recurring options.
|
||||
if repeat:
|
||||
|
|
Loading…
Reference in a new issue