summaryrefslogtreecommitdiff
path: root/xts5
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2010-02-17 15:11:42 -0800
committerDan Nicholson <dbn.lists@gmail.com>2010-02-17 15:11:42 -0800
commit834d7a96932570de2851fd6c5bb6b75db812571b (patch)
treef534917256c9d3e8159290ea4f87b34876ca5898 /xts5
parent4bf49780b405d0c1a814441b10e1a7acfd9eaa4d (diff)
xts5: Add some help text to xts-run
Diffstat (limited to 'xts5')
-rw-r--r--xts5/bin/xts-run.in19
1 files changed, 16 insertions, 3 deletions
diff --git a/xts5/bin/xts-run.in b/xts5/bin/xts-run.in
index b5e95d36..53730ddf 100644
--- a/xts5/bin/xts-run.in
+++ b/xts5/bin/xts-run.in
@@ -13,22 +13,35 @@ config_in="${TET_ROOT-$DEFAULT_TET_ROOT}/xts5/tetexec.cfg.in"
outdir=
scenario=
+help()
+{
+ cat << EOF
+Usage: $prog [OPTION]... [SCENARIO]
+Execute the XTS tests in SCENARIO (all by default).
+
+ -c, --config CONFIG use the tet config file CONFIG
+ -h, --help display this help text and exit
+ -o, --output DIRECTORY write log files to DIRECTORY
+EOF
+}
+
while [ -n "$1" ]; do
case "$1" in
- -c)
+ -c|--config)
config=$2
shift
;;
- -o)
+ -o|--output)
outdir=$2
shift
;;
-h|--help)
- echo "Usage: $prog [options] [scenario]"
+ help
exit 0
;;
-*)
echo "error: unrecognized option \"$1\"" >&2
+ echo "See \"$prog --help\" for more information" >&2
exit 1
;;
*)