diff --git a/simplify_static_dir.pl b/simplify_static_dir.pl index 8d6aade..db4a243 100755 --- a/simplify_static_dir.pl +++ b/simplify_static_dir.pl @@ -102,29 +102,22 @@ Written by Dan Church Samphetamachine@gmail.comE> use File::Find qw/ find /; use Getopt::Std qw/ getopts /; +use Pod::Usage qw/ pod2usage /; sub HELP_MESSAGE { my $fh = shift; - print $fh < 1, + -exitval => 0, + ); } MAIN: { - &getopts('vfm:M:z', \ my %opts); + &getopts('vfm:M:z', \ my %opts) + || &pod2usage( + -exitval => 2, + -msg => "Try '$0 --help' for more information", + ); my $verbose = defined $opts{v}; my $print_freed = defined $opts{f};