commit | 8d67cf8187505049c044797aa2b854bca4459bf9 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Dec 18 22:41:20 2018 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu Dec 20 10:33:18 2018 +0100 |
tree | aa2ea70a20af71e66fb04b8fca8227df3c27c75c | |
parent | fdafd9a3f805f5a02541f74be2fa364600d96c91 [diff] |
REGTEST: script: Process script arguments before everything else The help message is now in the function _help(). It exits the script with the status 0 to not run regtests when the help is displayed. So it is also handy to process script arguments before anything else. This avoids to start printing messages related to regtests execution when it is not appropriate. Another change, when it detects an invalid argument, the script exits with an error.