Changeset 18570 for trunk/DataStoreServer/scripts/dsprodtool
- Timestamp:
- Jul 15, 2008, 1:18:40 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/DataStoreServer/scripts/dsprodtool (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStoreServer/scripts/dsprodtool
r17885 r18570 41 41 42 42 GetOptions( 43 'add' => \$add, 44 'del' => \$del, 45 'product=s' => \$product, 43 'add=s' => \$add, 44 'del=s' => \$del, 46 45 'type=s' => \$ptype, 47 46 'description=s' => \$description, … … 61 60 my $err = ""; 62 61 63 $err .= "product is required\n" unless defined $product;64 65 62 # will exit if neither or both -add and -del were specified 66 63 $err .= "Must specify either --add or --del.\n" … … 68 65 69 66 if ($add) { 67 $product = $add; 70 68 if (!$ptype) { 71 69 $err .= "need to specify Product type to add\n"; … … 75 73 } 76 74 75 } else { 76 $product = $del; 77 77 } 78 78 … … 208 208 pod2usage( 209 209 -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] 211 211 212 212 Commands:
Note:
See TracChangeset
for help on using the changeset viewer.
