From 863e48a4fa901a49f7493e9267c18c16f80bad98 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Mon, 20 Dec 2021 12:17:34 +0100 Subject: [PATCH] usage mis a jour --- unitests.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/unitests.sh b/unitests.sh index c3376a6..226691d 100644 --- a/unitests.sh +++ b/unitests.sh @@ -82,10 +82,12 @@ cd $(dirname $0) { echo -en $GREEN"usage :\n" echo -en $CYAN"bash unitest.sh [option] [files list ...]\n" + echo -en $GREEN"or (to test signals and ctrl-d) :\n" + echo -en $CYAN"sudo bash unitest.sh [option] [files list ...]\n" echo -en $GREEN"\n[options]\n" - echo -en $CYAN"help : print usage\n" - echo -en $CYAN" -p : print tests commands\n" - echo -en $CYAN" -s : test in script, not interactif\n" + echo -en $CYAN"-help : print usage\n" + echo -en $CYAN" -p : print tests commands\n" + echo -en $CYAN" -s : (only in non-sudo) test in script, not interactif\n" echo -en $GREEN"\n[files list ...] if empty, defaults files will be used :\n" echo -en $CYAN"$DEFAULT_FILES_USAGE" echo -en $ENDCO"\n" @@ -115,7 +117,7 @@ cd $(dirname $0) LIST_FILES="$DEFAULT_FILES" if [ $# -gt 0 ] then - if [ "$1" == "help" ] + if [ "$1" == "-help" ] then print_usage cd $CURRENT_D