<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,17 +6,18 @@ usage = &quot;&quot;&quot;\
 usage: %s [options] [inputfile]
 
 options:
+    -h,   --help:           this help.
     -b x, --bg-pixel=x:     background pixel character of x.  default is space.
     -s x, --output-scale=x: how large to magnify output png.  default is 8.
 
 input file defaults to &quot;./input.xpm&quot;.  it must be an xpm in a similar format to
-the ones made by the gimp.
-&quot;&quot;&quot; % sys.argv[0]
+the ones made by the gimp.&quot;&quot;&quot; % sys.argv[0]
 
 try:
-    opts, args = getopt.getopt(sys.argv[1:], &quot;b:s:&quot;, [&quot;bg-pixel=&quot;, &quot;output-scale=&quot;])
+    opts, args = getopt.getopt(sys.argv[1:], &quot;hb:s:&quot;, [&quot;help&quot;, &quot;bg-pixel=&quot;, &quot;output-scale=&quot;])
 except getopt.GetoptError, e:
     print str(e)
+    print
     print usage
     sys.exit(2)
 
@@ -30,6 +31,9 @@ for o, a in opts:
         bgpixel = a
     elif o in ('-s', '--output-scale'):
         outputscale = int(a)
+    elif o in ('-h', '--help'):
+        print usage
+        sys.exit(0)
 
 def raw_line_data(line):
     return line.lstrip('&quot;').rstrip('&quot;},;\n')</diff>
      <filename>markovio.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d8356dd16d5a92980965e37f7f8c81b2041ecbce</id>
    </parent>
  </parents>
  <author>
    <name>Nick Welch</name>
    <email>mack@incise.org</email>
  </author>
  <url>http://github.com/mackstann/markovio/commit/289d451ce25f2bd813e5929c25cfb20cd68151ac</url>
  <id>289d451ce25f2bd813e5929c25cfb20cd68151ac</id>
  <committed-date>2009-01-08T20:36:11-08:00</committed-date>
  <authored-date>2009-01-08T20:36:11-08:00</authored-date>
  <message>help option</message>
  <tree>b4131b91dd0f9614e214c08aa54b108036e378c4</tree>
  <committer>
    <name>Nick Welch</name>
    <email>mack@incise.org</email>
  </committer>
</commit>
