2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Fix missing help text for non-generic commands

This commit is contained in:
Jonas Hörberg 2024-11-12 11:24:32 +01:00
parent 8576f9745e
commit 1ecad4f34a

View File

@ -43,7 +43,13 @@ class ArgParser(argparse.ArgumentParser):
def __init__(self, ctx):
argparse.ArgumentParser.__init__(self, add_help=False, conflict_handler='resolve')
self.ctx = ctx
def format_help(self):
self.usage = self.get_usage()
return super(ArgParser, self).format_help()
def format_usage(self):
return self.format_help()
def _get_formatter(self):
"""Initialize the argument parser to the adequate terminal width"""