IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18919


Ignore:
Timestamp:
Aug 5, 2008, 11:28:13 AM (18 years ago)
Author:
jhoblitt
Message:

add -all opt

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r18762 r18919  
    7676    //optional
    7777    PXOPT_LOOKUP_S32(timeout, config->args, "-timeout", false, false);
     78    PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);
    7879
    7980    // find last fileset/exp_name (if we have one)
    8081    bool haveLastFileSet = false;
    8182    psString lastFileSet = NULL;
    82     {
     83
     84    // -all means "request all known filesets"
     85    if (!all) {
    8386        char *query = "SELECT * from summitExp WHERE camera = \"%s\" and TELESCOPE = \"%s\" ORDER BY dateobs DESC LIMIT 1";
    8487        if (!p_psDBRunQuery(config->dbh, query, camera, telescope)) {
  • trunk/ippTools/src/pzgetexpConfig.c

    r18762 r18919  
    22 * pzgetexpConfig.c
    33 *
    4  * Copyright (C) 2006  Joshua Hoblitt
     4 * Copyright (C) 2006-2008  Joshua Hoblitt
    55 *
    66 * This program is free software; you can redistribute it and/or modify it
     
    5353    psMetadataAddS32(args, PS_LIST_TAIL, "-timeout",  0,
    5454        "HTTP timeout", 0);
     55    psMetadataAddBool(args, PS_LIST_TAIL, "-all",  0,
     56        "download ALL filesets", 0);
    5557
    5658
Note: See TracChangeset for help on using the changeset viewer.