Fixed for recurring options

This commit is contained in:
Dimitris Zlatanidis 2023-03-17 22:13:38 +02:00
parent 943f5aa5fb
commit 50c14c225f

View file

@ -283,9 +283,6 @@ class Argparse(Configs):
if opt[0] == '-' and opt in self.options:
if self.flags.count(opt) > 1:
repeat.append(opt)
if opt[:2] == '--':
if opt == self.options[self.options.index(opt)]:
repeat.append(opt)
# Fixed for recurring options.
if repeat: