add tools
[hband-tools.git] / boilerplate / script.sh
blobd4f0b172bb2f58810d0541dd6e052f65346cddfa
1 #!/bin/bash
3 true <<'EOF'
4 =pod
6 =head1 NAME
8 name - description
10 =head1 SYNOPSIS
12 name [I<OPTIONS>] [--]
14 =head1 DESCRIPTION
16 =head1 OPTIONS
18 =over 4
20 =item -v, --verbose
22 =back
24 =head1 LIMITATIONS
26 =head1 SEE ALSO
28 =cut
30 EOF
33 set -e
34 set -o pipefail
35 set -u
37 . /usr/lib/tool/bash-utils
40 opt_verbose=no
43 while [ $# != 0 ]
45 case "$1" in
46 --help)
47 pod2text "$0"
48 exit 0
50 -v|--verbose)
51 opt_verbose=yes
53 --)
54 shift
55 break
57 -*)
58 errx -1 "unknown option: $1"
61 break
63 esac
64 shift
65 done