IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16639


Ignore:
Timestamp:
Feb 24, 2008, 11:53:57 AM (18 years ago)
Author:
eugene
Message:

cleanups, remove no-op (only use no-update)

File:
1 edited

Legend:

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

    r16569 r16639  
    2323
    2424# Parse the command-line arguments
    25 my ($camera, $telescope, $workdir, $reduction, $dvo_db, $tess_id, $end_stage, $label, $dbname, $no_update, $no_op, $help);
    26 GetOptions('camera|i=s'     => \$camera, # user-supplied camera name
     25my ($camera, $telescope, $workdir, $reduction, $dvo_db, $tess_id, $end_stage, $label, $dbname, $no_op, $help);
     26GetOptions('camera|i=s'     => \$camera,    # user-supplied camera name
    2727           'telescope|t=s'  => \$telescope, # user-supplied telescope name
    28            'workdir|w=s'    => \$workdir, # working directory for output files
     28           'workdir|w=s'    => \$workdir,   # working directory for output files
    2929           'reduction=s'    => \$reduction, # user-supplied camera name
    3030           'dvodb=s'        => \$dvo_db,    # target dvo database
    3131           'tess_id=s'      => \$tess_id,   # tessalation for warping
    3232           'end_stage=s'    => \$end_stage, # stop processing at this step
    33            'label=s'        => \$label,     # stop processing at this step
     33           'label=s'        => \$label,     # set chip label
    3434           'dbname|d=s'     => \$dbname,    # Database name
    35            'no-update'      => \$no_update, # Update the database?
    36            'no-op'          => \$no_op,     # Don't do any operations?
     35           'no-op'          => \$no_op,     # pretend but don't actually inject
    3736           'help'           => \$help       # give help listing
    3837           ) or pod2usage( 2 );
     
    4241    defined $help;
    4342
    44 pod2usage( -msg => "Usage: $0 --telescope (name) --camera (name) [--workdir path] [--reduction class] [--dvodb db] [--tess_id tess] [--end_stage stage] [--dbname dbname] (files)",
     43pod2usage( -msg => "Usage: $0 --telescope (name) --camera (name) [--workdir path] [--reduction class] [--dvodb db] [--tess_id tess] [--end_stage stage] [--label label] [--dbname dbname] (files)",
    4544           -exitval => 2 ) if
    4645    scalar @ARGV == 0;
     
    138137$command_update .= " -dbname $dbname" if defined ($dbname);
    139138
    140 unless ($no_update) {
     139unless ($no_op) {
    141140    my ( $success_update, $error_code_update, $full_buf_update, $stdout_buf_update, $stderr_buf_update ) = run( command => $command_update, verbose => 1 );
    142141    die "Unable to update $exp_name: $error_code_update\n" if not $success_update;
Note: See TracChangeset for help on using the changeset viewer.