IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31148


Ignore:
Timestamp:
Apr 4, 2011, 11:45:44 AM (15 years ago)
Author:
mwv
Message:

Moved '-help' check to before processing other arguments
so that things like "missing -psf" option no longer
stop help message from being generated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/src/psphotForcedArguments.c

    r30772 r31148  
    112112    PS_ARGUMENTS_THREADS( psphot, config, argc, argv )
    113113
     114    if (psArgumentGet(argc, argv, "-help") ||
     115        psArgumentGet(argc, argv, "-h"))
     116      writeHelpInfo(argv[0], config, stdout);
     117     
    114118    // visual : interactive display mode
    115119    if ((N = psArgumentGet (argc, argv, "-visual"))) {
     
    176180    }
    177181
    178     if (psArgumentGet(argc, argv, "-help") ||
    179         psArgumentGet(argc, argv, "-h"))
    180       writeHelpInfo(argv[0], config, stdout);
    181      
    182182    // the input file is a required argument; if not found, we will exit
    183183    status = pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list");
Note: See TracChangeset for help on using the changeset viewer.