IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 1:18:40 PM (18 years ago)
Author:
bills
Message:

removed --product argument. Get it from the value of --add or --del

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/scripts/dsprodtool

    r17885 r18570  
    4141
    4242GetOptions(
    43         'add'           =>      \$add,
    44         'del'           =>      \$del,
    45         'product=s'     =>      \$product,
     43        'add=s'         =>      \$add,
     44        'del=s'         =>      \$del,
    4645        'type=s'        =>      \$ptype,
    4746        'description=s' =>      \$description,
     
    6160my $err = "";
    6261
    63 $err .= "product is required\n" unless defined $product;
    64 
    6562# will exit if neither or both -add and -del were specified
    6663$err .= "Must specify either --add or --del.\n"
     
    6865
    6966if ($add) {
     67    $product = $add;
    7068    if (!$ptype) {
    7169        $err .= "need to specify Product type to add\n";
     
    7573    }
    7674
     75} else {
     76    $product = $del;
    7777}
    7878
     
    208208    pod2usage(
    209209        -msg =>
    210 "usage: $tmp[$#tmp] [--add|--del] --product prod_name --type prod_type [options]
     210"usage: $tmp[$#tmp] [--add prod_name |--del prod_name ] --type prod_type [options]
    211211
    212212Commands:
Note: See TracChangeset for help on using the changeset viewer.