Updated for comments

This commit is contained in:
Dimitris Zlatanidis 2023-03-16 13:00:39 +02:00
parent b2e1110c1a
commit 1b73801682

View file

@ -285,6 +285,7 @@ class Argparse(Configs):
elif arg[0] == '--' and arg not in self.options:
invalid.append(arg)
# Avoid to combine two or more options.
if len(options) != len(set(options)):
print(f"{self.prog_name}: you can't combine {', '.join(options)} options.")
self.usage.help_minimal()