mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated for comments
This commit is contained in:
parent
410264bcf6
commit
f3dd31b398
1 changed files with 2 additions and 0 deletions
|
@ -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}'")
|
||||
|
|
Loading…
Add table
Reference in a new issue