make-brew-installer
-nouveau nom -ajout de l’installation des Command Line Tools -ajout de l’installationde Homebrew
This commit is contained in:
31
_test/usage.sh
Executable file
31
_test/usage.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
help=0
|
||||
latest=0
|
||||
verbose=0
|
||||
status=0
|
||||
|
||||
usage() {
|
||||
cat <<-EOF
|
||||
${0##*/} [options]
|
||||
options:
|
||||
-h show help dialog
|
||||
-l reinstall packages with version "latest"
|
||||
-v verbose output
|
||||
EOF
|
||||
exit "$status"
|
||||
}
|
||||
|
||||
for opt
|
||||
do case "$opt" in
|
||||
'-h') usage ;;
|
||||
'-l') latest=1 ;;
|
||||
'-v') verbose=1 ;;
|
||||
*) status=1 usage ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
echo "toto"
|
||||
|
||||
exit "$status"
|
||||
Reference in New Issue
Block a user