+
+ $options['src_url'] = $argv[count($cli_options) + 1];
+
+ return $options;
+}
+
+function parse_options_query_string()
+{
+ $options = array(
+ 'generate_enclosure' => FALSE
+ );
+
+ if (isset($_GET['src_url']))
+ $options['src_url'] = $_GET['src_url'];
+
+ if (isset($_GET['generate_enclosure']))
+ $options['generate_enclosure'] = $_GET['generate_enclosure'] == 1;
+
+ return $options;