Changeset 6964


Ignore:
Timestamp:
2004-03-08T13:58:03+13:00 (20 years ago)
Author:
kjdon
Message:

put the program difened options before the user defined ones in load_classifiers

File:
1 edited

Legend:

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

    r6809 r6964  
    7070    my ($opt, $key, $value);
    7171    my @newoptions;
     72
     73    # do these first so they can be overriden by user supplied options
     74    push @newoptions, "-builddir", "$build_dir" if ($build_dir);
     75    push @newoptions, "-outhandle", "$outhandle" if ($outhandle);
     76    push @newoptions, "-verbosity", "2";
     77
    7278    foreach $opt (@$classifyoption) {
    7379        if ($opt =~ /^(\w+)=(.*)$/) {
     
    7783        }
    7884    }
    79     push @newoptions, "-builddir", "$build_dir" if ($build_dir);
    80     push @newoptions, "-outhandle", "$outhandle" if ($outhandle);
    81     push @newoptions, "-verbosity", "2";
    8285
    8386    map { $_ = "\"$_\""; } @newoptions;
Note: See TracChangeset for help on using the changeset viewer.