IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31662


Ignore:
Timestamp:
Jun 22, 2011, 12:28:54 AM (15 years ago)
Author:
eugene
Message:

merged from eam_branches/ipp-20110505: add example help function to staticsky.pl

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_apply_burntool_single.pl

  • trunk/ippScripts/scripts/staticsky.pl

    r31271 r31662  
    4040}
    4141
     42sub HelpMessage {
     43    print "USAGE: staticsky.pl --sky_id (sky_id) --outroot (root) --camera (camera) [options]\n";
     44    print "  --sky_id (sky_id)   : run identifier\n";
     45    print "  --camera (camera)   : Camera name\n";
     46    print "  --dbname (dbname)   : Database name\n";
     47    print "  --threads (N)       : Number of threads to use\n";
     48    print "  --outroot (root)    : Output root name\n";
     49    print "  --reduction (class) : Reduction class\n";
     50    print "  --verbose           : Be extra verbose\n";
     51    print "  --no-update         : Don't update the database?\n";
     52    print "  --no-op             : Don't do any operations?\n";
     53    print "  --redirect-output   : send output to the log file,\n";
     54    print "  --save-temps        : Save temporary files?\n";
     55    print "  --help              : show this message\n";
     56    exit 2;
     57}
     58
    4259# XXX test:
    4360print "run staticsky.pl @ARGV\n";
    44 # exit 0;
    4561
    4662my ($sky_id, $camera, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps);
     
    5773    'redirect-output'   => \$redirect,
    5874    'save-temps'        => \$save_temps, # Save temporary files?
     75    'help'              => sub { HelpMessage() },
    5976) or pod2usage( 2 );
    6077
    6178pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
     79
    6280pod2usage(
    6381    -msg => "Required options: --sky_id --outroot --camera",
Note: See TracChangeset for help on using the changeset viewer.