| 1 |
#!/usr/bin/env perl |
| 2 |
use strict; |
| 3 |
use Data::Dumper; |
| 4 |
|
| 5 |
use Getopt::Complete ( |
| 6 |
'>animal' => [ |
| 7 |
'>dog' => [ |
| 8 |
'>bark' => [ |
| 9 |
'ferocity' => ['yip','wail','ruf','grrrr'], |
| 10 |
'count' => ['1','2','one too many'], |
| 11 |
], |
| 12 |
'>drool' => [ |
| 13 |
'buckets=n' => undef, |
| 14 |
'lick' => 'users', |
| 15 |
], |
| 16 |
'list!' => undef, |
| 17 |
], |
| 18 |
'>cat' => [ |
| 19 |
'>purr' => [], |
| 20 |
'>meow' => [ |
| 21 |
'volume=n' => undef, |
| 22 |
'bass' => ['low','medium','high'], |
| 23 |
] |
| 24 |
], |
| 25 |
], |
| 26 |
'>plant' => [ |
| 27 |
'>taters' => [ |
| 28 |
'>bake' => [ |
| 29 |
'hard!' => undef, |
| 30 |
'temp=n' => undef, |
| 31 |
], |
| 32 |
'>fry' => [ |
| 33 |
'greasiness' => ['crispy','drippy'], |
| 34 |
'width' => ['fat','thin','frite'], |
| 35 |
] |
| 36 |
], |
| 37 |
'>daisies' => [ |
| 38 |
'>pick' => [ |
| 39 |
'<>' => ['mine','yours','theirs'], |
| 40 |
], |
| 41 |
'>plant' => [ |
| 42 |
'season' => ['winter','spring','summer','fall'], |
| 43 |
'seeds=n' => undef, |
| 44 |
'deep!' => undef, |
| 45 |
] |
| 46 |
] |
| 47 |
], |
| 48 |
); |
| 49 |
|
| 50 |
print Dumper($ARGS); |
| 51 |
|
| 52 |
1; |
| 53 |
|
| 54 |
|