Skip to content

wscript: fix text for help

Gedare Bloom requested to merge gedare/rtems-deployment:fix-help into main

Summary

Fixes the following problem:

$ ./waf --help
Traceback (most recent call last):
  File "/mnt/devel/rtems/rtems-deployment/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Scripting.py", line 122, in waf_entry_point
    run_commands()
  File "/mnt/devel/rtems/rtems-deployment/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Scripting.py", line 181, in run_commands
    parse_options()
  File "/mnt/devel/rtems/rtems-deployment/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Scripting.py", line 168, in parse_options
    ctx.parser.print_help()
  File "/usr/lib/python3.10/argparse.py", line 2579, in print_help
    self._print_message(self.format_help(), file)
  File "/mnt/devel/rtems/rtems-deployment/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Options.py", line 19, in format_help
    return super(ArgParser,self).format_help()
  File "/usr/lib/python3.10/argparse.py", line 2563, in format_help
    return formatter.format_help()
  File "/usr/lib/python3.10/argparse.py", line 295, in format_help
    help = self._root_section.format_help()
  File "/usr/lib/python3.10/argparse.py", line 226, in format_help
    item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib/python3.10/argparse.py", line 226, in <listcomp>
    item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib/python3.10/argparse.py", line 226, in format_help
    item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib/python3.10/argparse.py", line 226, in <listcomp>
    item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib/python3.10/argparse.py", line 552, in _format_action
    help_text = self._expand_help(action)
  File "/usr/lib/python3.10/argparse.py", line 649, in _expand_help
    return self._get_help_string(action) % params
TypeError: %d format: a real number is required, not dict

Merge request reports