Changeset 35715 for trunk/psastro/src/psastroArguments.c
- Timestamp:
- Jun 26, 2013, 4:44:14 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroArguments.c
r26259 r35715 74 74 75 75 // apply mosastro mode? 76 bool mosastro = false; 76 77 if ((N = psArgumentGet (argc, argv, "-mosastro"))) { 77 78 psArgumentRemove (N, &argc, argv); … … 81 82 psArgumentRemove (N, &argc, argv); 82 83 psMetadataAddBool (config->arguments, PS_LIST_TAIL, "PSASTRO.MOSAIC.MODE", PS_META_REPLACE, "", true); 84 mosastro = true; 83 85 } 84 86 85 87 // apply chipastro mode? 88 bool chipastro = false; 86 89 if ((N = psArgumentGet (argc, argv, "-chipastro"))) { 87 90 psArgumentRemove (N, &argc, argv); … … 91 94 psArgumentRemove (N, &argc, argv); 92 95 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); 93 110 } 94 111
Note:
See TracChangeset
for help on using the changeset viewer.
