IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27866


Ignore:
Timestamp:
May 6, 2010, 9:18:41 AM (16 years ago)
Author:
rhenders
Message:

Improved argument handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/scripts/removeFromDatastore.pl

    r27843 r27866  
    55use IPC::Cmd 0.36 qw( can_run run );
    66use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
     7use Pod::Usage qw( pod2usage );
    78
    89my $start = undef;
    910my $end = undef;
    10 my $product = "PSPS_test";
     11my $product = undef;
    1112
    1213GetOptions(
     
    1819pod2usage(
    1920        -msg => "\n   Required options:\n\n".
    20         "--start<init|det|diff|stack>\n".
    21         "--end <path>\n".
     21        "--start <jobStartNumber> [--end <jobEndNumber>]\n".
    2222        "--product <datastoreProduct>\n",
    2323        -exitval => 3
    2424        ) unless
    2525defined $product and
    26 defined $start and
    27 defined $end;
     26defined $start;
    2827
     28
     29if (!defined $end) {$end = 1000000;}
    2930
    3031my $i;
Note: See TracChangeset for help on using the changeset viewer.