IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 22, 2006, 6:42:41 PM (20 years ago)
Author:
jhoblitt
Message:

rename -updatedetrun -rerun -> -again to avoid conflicting with the -rerun mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r8501 r8504  
    36893689    PS_ASSERT_PTR_NON_NULL(config, false);
    36903690
     3691    // either -rerun or -stop must be specified
     3692    bool status = false;
     3693    bool again = psMetadataLookupBool(&status, config->args, "-again");
     3694    if (!status) {
     3695        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -again");
     3696        return false;
     3697    }
     3698    bool stop = psMetadataLookupBool(&status, config->args, "-stop");
     3699    if (!status) {
     3700        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stop");
     3701        return false;
     3702    }
     3703    if (!(again || stop)) {
     3704        psError(PS_ERR_UNKNOWN, true, "either -again or -stop must be specified");
     3705        return false;
     3706    }
     3707    if (again && stop) {
     3708        psError(PS_ERR_UNKNOWN, true, "either -again or -stop must be specified");
     3709        return false;
     3710    }
     3711
    36913712    return true;
    36923713}
Note: See TracChangeset for help on using the changeset viewer.