Changeset 2359 for trunk/gsdl/perllib


Ignore:
Timestamp:
2001-05-04T11:15:58+12:00 (23 years ago)
Author:
sjboddie
Message:

Altered the help text a little for mkcol.pl, import.pl, buildcol.pl, and
build so that they now suggest using the "more" pager if the help text
scrolls off the screen (brought about by usability studies under DOS).
Note that this means some debug info that was once printed to STDERR is
now being printed to STDOUT.

Location:
trunk/gsdl/perllib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/parsargv.pm

    r1954 r2359  
    151151        elsif (!$allow_extra_options)
    152152        {
    153         print STDERR "$arg is not a valid option.\n";
     153        print STDOUT "$arg is not a valid option.\n";
    154154        $errors++;
    155155        }
     
    176176        elsif (ref($option{$arg}->{'varref'}) ne 'ARRAY')
    177177        {
    178         print STDERR "Missing command line argument -$arg.\n";
     178        print STDOUT "Missing command line argument -$arg.\n";
    179179        $errors++;
    180180        }
     
    196196    else
    197197    {
    198         print STDERR "Bad value for -$option->{'name'} argument.\n";
     198        print STDOUT "Bad value for -$option->{'name'} argument.\n";
    199199        $$errors++;
    200200    }
     
    206206    else
    207207    {
    208     print STDERR "No value given for -$option->{'name'}.\n";
     208    print STDOUT "No value given for -$option->{'name'}.\n";
    209209    $$errors++;
    210210    }
  • trunk/gsdl/perllib/util.pm

    r2193 r2359  
    566566        $collection = $ENV{'GSDLCOLLECTION'};
    567567    } else {
    568         print STDERR "No collection specified\n";
     568        print STDOUT "No collection specified\n";
    569569        return "";
    570570    }
     
    572572   
    573573    if ($collection eq "modelcol") {
    574     print STDERR "You can't use modelcol.\n";
     574    print STDOUT "You can't use modelcol.\n";
    575575    return "";
    576576    }
     
    583583    # make sure this collection exists
    584584    if (!-e $ENV{'GSDLCOLLECTDIR'}) {
    585     print STDERR "Invalid collection ($collection).\n";
     585    print STDOUT "Invalid collection ($collection).\n";
    586586    return "";
    587587    }
Note: See TracChangeset for help on using the changeset viewer.