Changeset 24830 for main/trunk


Ignore:
Timestamp:
2011-11-30T19:31:16+13:00 (12 years ago)
Author:
ak19
Message:

Minor changes in help and error reporting.

File:
1 edited

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>)) {
Note: See TracChangeset for help on using the changeset viewer.