IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2013, 2:33:53 PM (13 years ago)
Author:
bills
Message:

add username and state as selectors for pstamptool -listreq

File:
1 edited

Legend:

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

    r35295 r35298  
    452452    PXOPT_COPY_S64(config->args, where, "-req_id", "req_id", "==");
    453453    PXOPT_COPY_S64(config->args, where, "-not_req_id", "req_id", "!=");
    454     PXOPT_COPY_STR(config->args, where, "-name", "name", "==");
     454    PXOPT_COPY_STR(config->args, where, "-name", "name", "LIKE");
     455    PXOPT_COPY_STR(config->args, where, "-username", "username", "==");
     456    PXOPT_COPY_STR(config->args, where, "-state", "state", "==");
    455457
    456458    PXOPT_LOOKUP_U64(limit,   config->args, "-limit",  false, false);
     
    458460
    459461    if (!psListLength(where->list)) {
    460         psError(PS_ERR_UNKNOWN, true, "-req_id or -name must be supplied");
     462        psError(PS_ERR_UNKNOWN, true, "search paramters are required");
    461463        return false;
    462464    }
     
    490492    if (!psArrayLength(output)) {
    491493        psTrace("pstamptool", PS_LOG_INFO, "request not found");
    492         // This causes main to exit with PS_EXIT_DATA_ERROR which the script is looking for
     494        // This causes main to exit with PS_EXIT_DATA_ERROR which the pstamp scripts are looking for
    493495        psError(PXTOOLS_ERR_CONFIG, true, "request not found");
    494496        psFree(output);
    495         // we return false so that the caller can determine that a request does not exist
     497        // we return false so that the caller can easily determine that a request does not exist
    496498        return false;
    497499    }
Note: See TracChangeset for help on using the changeset viewer.