Updated for comments

This commit is contained in:
Dimitris Zlatanidis 2023-03-17 21:55:37 +02:00
parent 65ebdad2a3
commit 943f5aa5fb

View file

@ -278,7 +278,7 @@ class Argparse(Configs):
elif arg[0] == '-' and arg not in self.options:
invalid.append(arg)
# Counts the doubles options.
# Counts the recurring options.
for opt in self.flags:
if opt[0] == '-' and opt in self.options:
if self.flags.count(opt) > 1: