Projet

Général

Profil

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

root / bin / print-help-if-required.sh @ 7d7b5830

1
#!/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))