mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +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)
|
self.args.append(opt)
|
||||||
|
|
||||||
|
# Avoid to combine two or more commands.
|
||||||
if len(commands) > 1:
|
if len(commands) > 1:
|
||||||
print(f"slpkg: You can't combine {', '.join(commands)} commands.")
|
print(f"slpkg: You can't combine {', '.join(commands)} commands.")
|
||||||
self.usage.help_minimal()
|
self.usage.help_minimal()
|
||||||
|
|
||||||
|
# Prints error for invalid options.
|
||||||
if invalid_options:
|
if invalid_options:
|
||||||
for opt in invalid_options:
|
for opt in invalid_options:
|
||||||
print(f"slpkg: invalid option '{opt}'")
|
print(f"slpkg: invalid option '{opt}'")
|
||||||
|
|
Loading…
Add table
Reference in a new issue