]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
testrun.sh: Improve --help message
authorLucas A. M. Magalhaes <lamm@linux.ibm.com>
Tue, 25 May 2021 04:44:19 +0000 (10:14 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 25 May 2021 04:44:19 +0000 (10:14 +0530)
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>
Makefile

index 50f99ca611c9c3b756dac7c8bebf00cb8b97c183..242d36de914c516f6f0c718815f207e668bea6a7 100644 (file)
--- 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
 }