mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fixed for keyerror
This commit is contained in:
parent
b97424c835
commit
3426206942
1 changed files with 5 additions and 2 deletions
|
@ -729,8 +729,11 @@ class Argparse(Configs):
|
||||||
def help_for_commands(self) -> None:
|
def help_for_commands(self) -> None:
|
||||||
""" Extra help information for commands. """
|
""" Extra help information for commands. """
|
||||||
if len(self.args) == 2:
|
if len(self.args) == 2:
|
||||||
flags = self.commands[self.args[1]]
|
try:
|
||||||
Help(self.args[1], flags).view()
|
flags = self.commands[self.args[1]]
|
||||||
|
Help(self.args[1], flags).view()
|
||||||
|
except KeyError:
|
||||||
|
self.usage.help_short(1)
|
||||||
else:
|
else:
|
||||||
self.usage.help_short(1)
|
self.usage.help_short(1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue