1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-06-25 12:41:56 +03: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:
Werner Lewis
2022-09-16 17:03:54 +01:00
parent 64334d96d0
commit 4ed94a4f7e
3 changed files with 5 additions and 5 deletions

View File

@ -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]))