mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 14:08:39 +00:00
Use a script specific description in CLI help
Previous changes used the docstring of the test_generation module, which does not inform a user about the script. Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
07c830c164
commit
c2fb540c67
3 changed files with 5 additions and 5 deletions
|
|
@ -233,6 +233,6 @@ class BignumAdd(BignumOperation):
|
|||
def result(self) -> str:
|
||||
return quote_str("{:x}".format(self.int_a + self.int_b))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_generation.main(sys.argv[1:])
|
||||
# Use the section of the docstring relevant to the CLI as description
|
||||
test_generation.main(sys.argv[1:], "\n".join(__doc__.splitlines()[:4]))
|
||||
|
|
|
|||
|
|
@ -917,4 +917,4 @@ class PSATestGenerator(test_generation.TestGenerator):
|
|||
super().generate_target(name, self.info)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_generation.main(sys.argv[1:], PSATestGenerator)
|
||||
test_generation.main(sys.argv[1:], __doc__, PSATestGenerator)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue