Projet

Général

Profil

Paste
Télécharger (259 octets) Statistiques
| Branche: | Révision:

root / bin / print-help-if-required.sh @ 5a4b9049

1 15ed27d8 Julien Enselme
#!/bin/sh
2
3
# You must define a 'usage' function before to use that script.
4
# Never import it if you are using another getopts in your script.
5
6
while getopts "h" opt; do
7
    case "${opt}" in
8
	h)
9
	    usage
10
	    exit 0
11
	    ;;
12
    esac
13
done
14
shift $((OPTIND-1))