IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 26, 2013, 1:51:17 PM (13 years ago)
Author:
bills
Message:

allow user to change email value with command line option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_request_file

    r35362 r35440  
    1818     $output,                   # Name of output table
    1919     $req_name,
     20     $email,
    2021     $help
    2122     );
     
    2526           'output|o=s'   => \$output,
    2627           'req_name|r=s' => \$req_name,
    27            'help|h'         => \$help,
     28           'email=s'      => \$email,
     29           'help|h'       => \$help,
    2830) or pod2usage( 2 );
    2931
     
    6668];
    6769
     70my $email_column_num = 3;
     71
    6872# Specification of columns to write
    6973my $columns = [
     
    165169    $req_name = $header->[0]->{value};
    166170}
     171if ($email) {
     172    $header->[$email_column_num]->{value} = $email;
     173}
     174
    167175
    168176die "no request name defined" unless defined $req_name;
     
    302310
    303311            $$r_extver = $vals[1];
    304             if ($extver > 1) {
     312            if ($$r_extver > 1) {
    305313                die "number of header columns in input $nvals does not equal expected number of header words $nhead"
    306314                    if (@vals != @$header);
Note: See TracChangeset for help on using the changeset viewer.