Updated for comments

This commit is contained in:
Dimitris Zlatanidis 2023-03-16 11:12:15 +02:00
parent 410264bcf6
commit f3dd31b398

View file

@ -291,10 +291,12 @@ class Argparse(Configs):
self.args.append(opt)
# Avoid to combine two or more commands.
if len(commands) > 1:
print(f"slpkg: You can't combine {', '.join(commands)} commands.")
self.usage.help_minimal()
# Prints error for invalid options.
if invalid_options:
for opt in invalid_options:
print(f"slpkg: invalid option '{opt}'")