diff --git a/slpkg/main.py b/slpkg/main.py index efe002f9..02daf377 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -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)