3 #==============================================================================
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #==============================================================================
13 progname
=STDfilenameDTS
20 while test -n "$1"; do
22 -h|
--help) opt_help
=1; shift ;;
23 -q|
--quiet) opt_quiet
=$
(($opt_quiet + 1)); shift ;;
24 -v|
--verbose) opt_verbose
=$
(($opt_verbose + 1)); shift ;;
25 --version) echo $progname $VERSION; exit 0 ;;
28 if printf '%s\n' "$1" |
grep -q ^
-; then
29 echo "$progname: $1: Unknown option" >&2
37 opt_verbose
=$
(($opt_verbose - $opt_quiet))
39 if test "$opt_help" = "1"; then
40 test $opt_verbose -gt 0 && { echo; echo $progname $VERSION; }
43 Usage: $progname [options]
50 Be more quiet. Can be repeated to increase silence.
52 Increase level of verbosity. Can be repeated.
54 Print version information.
60 # vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 :