19 |
|
|
20 |
my ($debug,$verbose) = (0,0); |
my ($debug,$verbose) = (0,0); |
21 |
my ($help,$masterhost,$masterport,$masteruser,$masterpassword); |
my ($help,$masterhost,$masterport,$masteruser,$masterpassword); |
|
my $snapshot = "__Snapshot"; |
|
22 |
|
|
23 |
my $result = GetOptions( |
my $result = GetOptions( |
24 |
"debug!" => \$debug, "verbose!" => \$verbose, "help" => \$help, |
"debug!" => \$debug, "verbose!" => \$verbose, "help" => \$help, |
25 |
"masterhost=s" => \$masterhost, "masterport=i" => \$masterport, |
"masterhost=s" => \$masterhost, "masterport=i" => \$masterport, |
26 |
"masteruser=s" => \$masteruser, "masterpassword=s" => \$masterpassword, |
"masteruser=s" => \$masteruser, "masterpassword=s" => \$masterpassword, |
|
"snapshot=s" => \$snapshot, |
|
27 |
); |
); |
28 |
|
|
29 |
if (defined($help) || (scalar(@ARGV) < 2) || ($ARGV[1] !~ /^\d+$/)) { |
if (defined($help) || (scalar(@ARGV) < 2) || ($ARGV[1] !~ /^\d+$/)) { |
31 |
Options: |
Options: |
32 |
--masterhost=hostname --masterport=port |
--masterhost=hostname --masterport=port |
33 |
--masteruser=username --masterpassword=string |
--masteruser=username --masterpassword=string |
|
--snapshot=snapshot |
|
34 |
"; |
"; |
35 |
exit ((scalar(@ARGV) < 2)? 1:0); |
exit ((scalar(@ARGV) < 2)? 1:0); |
36 |
} |
} |