<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -339,7 +339,7 @@ if __name__ == &quot;__main__&quot;:
             if len(args) &gt; 1:
                 filename = args[1]
             else:
-                os.environ[&quot;ORIG_FILENAMES&quot;] = os.environ.get(&quot;ORIG_FILENAMES&quot;) or str(True)
+                os.environ[&quot;ORIG_FILENAMES&quot;] = os.environ.get(&quot;ORIG_FILENAMES&quot;) or &quot;1&quot;
                 filename = io.safe_filename(urlrewrite.url_to_filename(url))
             Fetcher(mode=Fetcher.FETCH, url=url, filename=filename).launch()
     except filetype.WrongFileTypeError:</diff>
      <filename>fetch.py</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ import shcolor
 
 _help_header = &quot;spiderfetch tool suite\n\n&quot;
 
-_tools_help=&quot;&quot;&quot;\
+_help_tools=&quot;&quot;&quot;\
 == spiderfetch ==
 
 Spiders recursively for urls, starting from &lt;url&gt;. Driven either by &lt;pattern&gt;
@@ -46,6 +46,19 @@ An automation module for use with mplayer to record media streams. Reads urls
 from a file and records with mplayer.
 &quot;&quot;&quot;
 
+_help_vars=&quot;&quot;&quot;\
+SOCKET_TIMEOUT   Seconds to wait before calling a socket timeout.
+TRIES            Number of tries on 503 Service Unavailable.
+
+ORIG_FILENAMES   Save files with their original filenames on the host (1) or
+  use filenames generated from the full url to avoid name collisions (0).
+TMPDIR           Temp directory for downloads.
+LOGDIR           Directory to use for logfiles.
+
+TERM             When set and not 'dumb' gives color output.
+DEBUG_FETCH      Write newlines after every update to see the full output.
+&quot;&quot;&quot;
+
 #LOGDIR = os.environ.get(&quot;LOGDIR&quot;) or &quot;logs&quot;
 LOGDIR = os.environ.get(&quot;LOGDIR&quot;) or &quot;.&quot;
 
@@ -60,7 +73,7 @@ def write_abort():
     write_err(&quot;\n%s\n&quot; % shcolor.color(shcolor.RED, &quot;User aborted&quot;))
 
 def get_tempfile():
-	return tempfile.mkstemp(prefix=os.path.basename(&quot;.&quot; + sys.argv[0]) + &quot;.&quot;)
+	return tempfile.mkstemp(prefix=&quot;.&quot;+os.path.basename(sys.argv[0])+&quot;.&quot;)
 
 def safe_filename(filename, dir=None):
     if dir:
@@ -133,13 +146,18 @@ def opts_help(option, opt_str, value, parser):
     sys.exit(2)
 
 def help_tools(option, opt_str, value, parser):
-    write_err(_help_header+_tools_help)
+    write_err(_help_header+_help_tools)
+    sys.exit(2)
+
+def help_vars(option, opt_str, value, parser):
+    write_err(_help_header+_help_vars)
     sys.exit(2)
 
 def parse_args(parser):
     a = parser.add_option
     a(&quot;-h&quot;, action=&quot;callback&quot;, callback=opts_help, help=&quot;Display this message&quot;)
     a(&quot;--tools&quot;, action=&quot;callback&quot;, callback=help_tools, help=&quot;Descriptions of the tools&quot;)
+    a(&quot;--vars&quot;, action=&quot;callback&quot;, callback=help_vars, help=&quot;Environmental variables&quot;)
     return parser.parse_args()
 
 </diff>
      <filename>io.py</filename>
    </modified>
    <modified>
      <diff>@@ -194,11 +194,11 @@ if __name__ == &quot;__main__&quot;:
     (opts, args) = io.parse_args(parser)
     try:
         if opts.fetch:
-            os.environ[&quot;FETCH_ALL&quot;] = str(True)
+            os.environ[&quot;FETCH_ALL&quot;] = &quot;1&quot;
         elif opts.dump:
-            os.environ[&quot;DUMP_ALL&quot;] = str(True)
+            os.environ[&quot;DUMP_ALL&quot;] = &quot;1&quot;
         if opts.host:
-            os.environ[&quot;HOST_FILTER&quot;] = str(True)
+            os.environ[&quot;HOST_FILTER&quot;] = &quot;1&quot;
         if opts.depth:
             os.environ[&quot;DEPTH&quot;] = str(opts.depth)
 </diff>
      <filename>spiderfetch.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8f6c5d066b1eea6d894f99509aa2072b2efeab90</id>
    </parent>
  </parents>
  <author>
    <name>Martin Matusiak</name>
    <email>numerodix@gmail.com</email>
  </author>
  <url>http://github.com/numerodix/spiderfetch/commit/c5130c4195cddfdd52cdf79ef4df7186e443d8c7</url>
  <id>c5130c4195cddfdd52cdf79ef4df7186e443d8c7</id>
  <committed-date>2008-06-27T14:30:21-07:00</committed-date>
  <authored-date>2008-06-27T14:30:21-07:00</authored-date>
  <message>add help for env vars</message>
  <tree>a7946633ede895f6319cacfcf6ae728493114fd9</tree>
  <committer>
    <name>Martin Matusiak</name>
    <email>numerodix@gmail.com</email>
  </committer>
</commit>
