diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2017-05-16 22:45:31 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-05-17 21:56:49 +0200 |
commit | fa3c5cad44b245833612705a88101f3737d02b38 (patch) | |
tree | 6c5d127d4ea670e0f9b745e6668e9535321f286d /support/testing/run-tests | |
parent | ee72dbe576e0c8e11a0bd61028950b2f8de29642 (diff) | |
download | buildroot-fa3c5cad44b245833612705a88101f3737d02b38.tar.gz buildroot-fa3c5cad44b245833612705a88101f3737d02b38.zip |
support/testing/run-tests: help: put the one-letter form before the long form
This is what the manpages usually do, and what Python does with the
automatically-added -h/--help parameter:
Before the change:
$ ./support/testing/run-tests
[...]
optional arguments:
-h, --help show this help message and exit
--list, -l list of available test cases
--all, -a execute all test cases
After the change:
$ ./support/testing/run-tests
[...]
optional arguments:
-h, --help show this help message and exit
-l, --list list of available test cases
-a, --all execute all test cases
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/testing/run-tests')
-rwxr-xr-x | support/testing/run-tests | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/support/testing/run-tests b/support/testing/run-tests index 339bb66efa..07dad0d8b9 100755 --- a/support/testing/run-tests +++ b/support/testing/run-tests @@ -10,17 +10,17 @@ def main(): parser = argparse.ArgumentParser(description='Run Buildroot tests') parser.add_argument('testname', nargs='*', help='list of test cases to execute') - parser.add_argument('--list', '-l', action='store_true', + parser.add_argument('-l', '--list', action='store_true', help='list of available test cases') - parser.add_argument('--all', '-a', action='store_true', + parser.add_argument('-a', '--all', action='store_true', help='execute all test cases') - parser.add_argument('--stdout', '-s', action='store_true', + parser.add_argument('-s', '--stdout', action='store_true', help='log everything to stdout') - parser.add_argument('--output', '-o', + parser.add_argument('-o', '--output', help='output directory') - parser.add_argument('--download', '-d', + parser.add_argument('-d', '--download', help='download directory') - parser.add_argument('--keep', '-k', + parser.add_argument('-k', '--keep', help='keep build directories', action='store_true') |