IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 12, 2009, 7:21:07 AM (17 years ago)
Author:
welling
Message:

Added support for -help, -version, -dumpconfig; added some argument count tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotCleanup.c

    r23487 r24144  
    22
    33void psphotCleanup (pmConfig *config) {
     4
     5    // Dump configuration if requested
     6    bool status;
     7    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
     8    if (dump_file) {
     9        (void)pmConfigCamerasCull(config,NULL);
     10        (void)pmConfigRecipesCull(config,NULL);
     11        pmConfigDump(config, dump_file);
     12    }
    413
    514    psFree (config);
Note: See TracChangeset for help on using the changeset viewer.