usage mis a jour
This commit is contained in:
10
unitests.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user