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>
diff --git a/tests/scripts/generate_bignum_tests.py b/tests/scripts/generate_bignum_tests.py
index b4915d8..ceafa4a 100755
--- a/tests/scripts/generate_bignum_tests.py
+++ b/tests/scripts/generate_bignum_tests.py
@@ -233,6 +233,6 @@
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]))