+ $cli_options = getopt("eh", array("help"));
+ foreach ($cli_options as $opt => $val) {
+ switch ($opt) {
+ case 'e':
+ $options['generate_enclosure'] = TRUE;
+ break;
+ case 'h':
+ case 'help':
+ echo usage($argv);
+ exit(0);
+ default:
+ die(usage($argv));
+ }
+ }
+
+ $options['src_url'] = $argv[count($cli_options) + 1];