Project

General

Profile

Paste
Download (259 Bytes) Statistics
| Branch: | Revision:

root / bin / print-help-if-required.sh @ 15ed27d8

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))