Updated for error msg

This commit is contained in:
Dimitris Zlatanidis 2023-03-30 23:08:43 +03:00
parent 1b4b388442
commit 49cf129c60

View file

@ -733,7 +733,7 @@ class Argparse(Configs):
flags = self.commands[self.args[1]]
Help(self.args[1], flags).view()
except KeyError:
self.usage.help_short(1)
self.usage.help_minimal(f"{self.prog_name}: invalid argument '{''.join(self.args[1])}'")
else:
self.usage.help_short(1)