Changeset 5053


Ignore:
Timestamp:
2003-07-28T12:38:54+12:00 (21 years ago)
Author:
mdewsnip
Message:

Fixed a small bug where command-line options with no values that are specified last were ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r5044 r5053  
    448448    int argument_index = 0;
    449449    String next_token = null;
    450     while(argument_index < args.length) {
     450    while(argument_index < args.length || next_token != null) {
    451451        // 1. We start by attempting to parse an argument name. An argument must start with a '-', and should not contain spaces. If anything else is encountered it is ignored.
    452452        String argument_name = null;
Note: See TracChangeset for help on using the changeset viewer.