IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2007, 11:57:36 AM (19 years ago)
Author:
eugene
Message:

added galaxies, some tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimArguments.c

    r14657 r14667  
    7171    pmConfigFileSetsMD (config->arguments, &argc, argv, "PSPHOT.PSF", "-psf", "-psflist");
    7272
    73     if (!config->camera) {
    74         psErrorStackPrint(stderr, "A camera name must be specified using the -camera option.");
     73    // only one of -camera and -file is needed
     74    bool status = pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list");
     75    if (!config->camera && !status) {
     76        psErrorStackPrint(stderr, "A camera name (-camera NAME) or an image (-file NAME) must be specified");
    7577        usage(argv[0], arguments, config);
    7678    }
     
    8284    psString formatName = psMetadataLookupStr(NULL, arguments, "-format"); // Name of format
    8385    if (formatName) {
     86        // XXX delay the config below until ppSimCreate?
    8487        config->formatName = psMemIncrRefCounter(formatName);
    8588
Note: See TracChangeset for help on using the changeset viewer.