| @@ 28-33 (lines=6) @@ | ||
| 25 | isset($options['help'])) |
|
| 26 | usage(); |
|
| 27 | ||
| 28 | if (!isset($options['bucket']) || !isset($options['file']) || |
|
| 29 | !isset($options['to'])) |
|
| 30 | { |
|
| 31 | print "Error: Missing mandatory parameter !\n"; |
|
| 32 | usage(); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| 36 | $options = getopt("h", array("bucket:", "file:", "to:", "force::", "help::")); |
|
| @@ 29-34 (lines=6) @@ | ||
| 26 | isset($options['help'])) |
|
| 27 | usage(); |
|
| 28 | ||
| 29 | if (!isset($options['bucket']) || !isset($options['file']) || |
|
| 30 | !isset($options['from'])) |
|
| 31 | { |
|
| 32 | print "Error: Missing mandatory parameter !\n"; |
|
| 33 | usage(); |
|
| 34 | } |
|
| 35 | ||
| 36 | $options['bucket'] = rtrim( $options['bucket'], "/"); |
|
| 37 | } |
|