2 # SCRIPTNAME DOES_SOMETHING
3 # and is released under the terms of the GNU GPL version 3, or any
4 # later version, at your option. See the file README and COPYING for
6 # Copyright 2013 by Don Armstrong <don@donarmstrong.com>.
17 SCRIPTNAME - DOES_SOMETHING
24 --debug, -d debugging level (Default 0)
25 --help, -h display this help
26 --man, -m display manual
34 Debug verbosity. (Default 0)
38 Display brief usage information.
55 my %options = (debug => 0,
61 'debug|d+','help|h|?','man|m');
63 pod2usage() if $options{help};
64 pod2usage({verbose=>2}) if $options{man};
66 $DEBUG = $options{debug};
70 push @USAGE_ERRORS,"You must pass something";
73 pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS;