mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +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:
|
||||
""" Extra help information for commands. """
|
||||
if len(self.args) == 2:
|
||||
flags = self.commands[self.args[1]]
|
||||
Help(self.args[1], flags).view()
|
||||
try:
|
||||
flags = self.commands[self.args[1]]
|
||||
Help(self.args[1], flags).view()
|
||||
except KeyError:
|
||||
self.usage.help_short(1)
|
||||
else:
|
||||
self.usage.help_short(1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue