IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 1:43:50 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psastro/src/psastroArguments.c

    r26259 r35747  
    7474
    7575    // apply mosastro mode?
     76    bool mosastro = false;
    7677    if ((N = psArgumentGet (argc, argv, "-mosastro"))) {
    7778        psArgumentRemove (N, &argc, argv);
     
    8182        psArgumentRemove (N, &argc, argv);
    8283        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.MOSAIC.MODE", PS_META_REPLACE, "", true);
     84        mosastro = true;
    8385    }
    8486
    8587    // apply chipastro mode?
     88    bool chipastro = false;
    8689    if ((N = psArgumentGet (argc, argv, "-chipastro"))) {
    8790        psArgumentRemove (N, &argc, argv);
     
    9194        psArgumentRemove (N, &argc, argv);
    9295        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.CHIP.MODE", PS_META_REPLACE, "", true);
     96        chipastro = true;
     97    }
     98    if ((N = psArgumentGet (argc, argv, "-skipastro"))) {
     99        psArgumentRemove (N, &argc, argv);
     100        if (mosastro) {
     101            psError(PSASTRO_ERR_ARGUMENTS, true, "cannot specify +mosastro with -skipastro");
     102            psErrorStackPrint(stderr, "exit");
     103            return false;
     104        }
     105        if (chipastro) {
     106            psError(PSASTRO_ERR_ARGUMENTS, true, "cannot specify +chipastro with -skipastro");
     107            return false;
     108        }
     109        psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.SKIP.ASTRO", PS_META_REPLACE, "", true);
    93110    }
    94111
Note: See TracChangeset for help on using the changeset viewer.