IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2008, 2:04:28 PM (18 years ago)
Author:
bills
Message:

optionally save configuration to a file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroArguments.c

    r18007 r19557  
    8181    }
    8282
     83    // dump the configuration to a file?
     84    if ((N = psArgumentGet (argc, argv, "-dumpconfig"))) {
     85        psArgumentRemove (N, &argc, argv);
     86        psMetadataAddStr (config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE, "", argv[N]);
     87        psArgumentRemove (N, &argc, argv);
     88    }
     89
    8390    status = pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list");
    8491    if (!status) {
Note: See TracChangeset for help on using the changeset viewer.