From 1ecad4f34acf8f49edf54bc6fb1ccb63a1552d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6rberg?= Date: Tue, 12 Nov 2024 11:24:32 +0100 Subject: [PATCH] Fix missing help text for non-generic commands --- waflib/Options.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/waflib/Options.py b/waflib/Options.py index 7a4e2350..3f8a2f32 100644 --- a/waflib/Options.py +++ b/waflib/Options.py @@ -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"""