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