about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLucas A. M. Magalhaes <lamm@linux.ibm.com>2021-05-25 10:14:19 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-05-25 10:14:19 +0530
commit709e3709a02636fb9ce79fad727b09140989864c (patch)
tree07feff89b25c90fb6ac69dfe9da1c54b3a7d1f40 /Makefile
parent7de36744ee1325f35d3fe0ca079dd33c40b12267 (diff)
downloadglibc-709e3709a02636fb9ce79fad727b09140989864c.tar.gz
glibc-709e3709a02636fb9ce79fad727b09140989864c.tar.xz
glibc-709e3709a02636fb9ce79fad727b09140989864c.zip
testrun.sh: Improve --help message
The testrun.sh --help message was missing the "container" option.
Besides just adding the missing option I decide to rewrite it in the
same layout as other tools.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 50f99ca611..242d36de91 100644
--- a/Makefile
+++ b/Makefile
@@ -144,8 +144,13 @@ builddir=`dirname "$$0"`
 GCONV_PATH="$${builddir}/iconvdata"
 
 usage () {
-  echo "usage: $$0 [--tool=strace] PROGRAM [ARGUMENTS...]" 2>&1
-  echo "       $$0 --tool=valgrind PROGRAM [ARGUMENTS...]" 2>&1
+cat << EOF
+Usage: $$0 [OPTIONS] <program> [ARGUMENTS...]
+
+  --tool=TOOL  Run with the specified TOOL. It can be strace, valgrind or
+               container. The container will run within support/test-container.
+EOF
+
   exit 1
 }