diff --git a/bin/fortune b/bin/fortune index 160dcc3c..3f65272c 100755 --- a/bin/fortune +++ b/bin/fortune @@ -42,7 +42,7 @@ my $STR_ROTATED = 0x4; # Globals my (%opts); -getopts('adefhilosvwm:n:', \%opts); +getopts('adefilosvwm:n:', \%opts) or print_help(); my $debug = $opts{d}; @@ -75,8 +75,6 @@ my %Top_item = ( name => 'Top level file/directory list', # this is the main routine of the program -if ($opts{h}) { print_help(); } - build_file_list( list_files( \%Top_item ) ); if ($opts{m}) { @@ -956,11 +954,12 @@ sub print_help print <