Show
Ignore:
Timestamp:
30.11.2011 19:31:16 (8 years ago)
Author:
ak19
Message:

Minor changes in help and error reporting.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/gs-magick.pl

    r24785 r24830  
    5151    my ($argc,@argv) = @_; 
    5252 
    53     my $usage = "Usage: $0 [--usage|--verbosity <num>] <imagick-command> <arguments to imagick command>"; 
     53    my $usage = "Usage: $0 [--usage|--help|--verbosity <num>] <imagick-command> <arguments to imagick command>"; 
    5454 
    5555    my $verbosity = 0; 
     
    7373    # option that image-magick accepts. 
    7474 
    75     if($magick_cmd =~ m/--usage/) { 
     75    if($magick_cmd =~ m/--usage|--help/) { 
    7676    print STDERR "$usage\n"; 
    7777    exit(0); 
     
    136136    my $result = ""; 
    137137    if (!open(PIN, "$magick_cmd |")) { 
    138     print STDERR "*** Can't run $magick_cmd. Error was: $!"; 
     138    print STDERR "*** Can't run $magick_cmd. Error was: $!.\n\n"; 
    139139    } else { 
    140140    while (defined (my $imagick_output_line = <PIN>)) {