<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -68,13 +68,15 @@ programs utilizing the library have been placed.  Here's a snippet:
     end
   end
 
-  puts 'port: ' + Choice.choices[:port]
+  puts 'port: ' + Choice[:port]
 
 Notice the last line.  For free, you will be given a &lt;tt&gt;Choice.choices&lt;/tt&gt; 
-hash which contain, at runtime, the options found and their values.
+hash which contain, at runtime, the options found and their values. 
+
+&lt;tt&gt;Choice[:key]&lt;/tt&gt; is a shortcut for &lt;tt&gt;Choice.choices[:key]&lt;/tt&gt;.
 
 Because we gave option &lt;tt&gt;:port&lt;/tt&gt; a default of 21, 
-&lt;tt&gt;Choice.choices[:port]&lt;/tt&gt; should be 21 if we run ftpd.rb with no options.  
+&lt;tt&gt;Choice[:port]&lt;/tt&gt; should be 21 if we run ftpd.rb with no options.  
 Let's see.
 
  $ ruby ftpd.rb
@@ -89,7 +91,7 @@ Alright.  And, of course, there is the hard way of doing things.
 
  $ ruby ftpd.rb --port=2100
  port: 2100
- 
+
 That &lt;tt&gt;:version&lt;/tt&gt; option looks pretty interesting, huh?  I wonder what it 
 does...
  </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -47,20 +47,25 @@ module Choice
     @@choices
   end
 
+  # Shortcut access to Choice.choices
+  def [](choice)
+    choices[choice]
+  end
+
   # Defines an option.
   def option(opt, options = {}, &amp;block)
     # Notice: options is maintained as an array of arrays, the first element
     # the option name and the second the option object.
     @@options &lt;&lt; [opt.to_s, Option.new(options, &amp;block)]
   end
-  
+
   # Separators are text displayed by --help within the options block.
   def separator(str)
-    # We store separators as simple strings in the options array to maintain 
+    # We store separators as simple strings in the options array to maintain
     # order.  They are ignored by the parser.
     @@options &lt;&lt; str
   end
-  
+
   # Define the banner, header, footer methods.  All are just getters/setters
   # of class variables.
   %w[banner header footer].each do |method|</diff>
      <filename>lib/choice.rb</filename>
    </modified>
    <modified>
      <diff>@@ -32,27 +32,30 @@ class TestChoice &lt; Test::Unit::TestCase
       footer &quot;&quot;
       footer &quot;--help This message&quot;
     end
-    
+
     band = 'LedZeppelin'
     animal = 'Reindeer'
-    
+
     args = ['-b', band, &quot;--animal=#{animal}&quot;]
     Choice.args = args
-    
+
     assert_equal band, Choice.choices['band']
     assert_equal animal, Choice.choices[:animal]
     assert_equal [&quot;Tell me about yourself?&quot;, &quot;&quot;], Choice.header
     assert_equal [&quot;&quot;, &quot;--help This message&quot;], Choice.footer
+
+    assert_equal Choice.choices['band'], Choice['band']
+    assert_equal Choice.choices[:animal], Choice[:animal]
   end
-  
+
   def test_failed_parse
     assert Hash.new, Choice.parse
   end
-  
+
   HELP_STRING = ''
   def test_help
     Choice.output_to(HELP_STRING)
-    
+
     Choice.options do
       banner &quot;Usage: choice [-mu]&quot;
       header &quot;&quot;</diff>
      <filename>test/test_choice.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b12556493c86b07ff3efc0fa31f0981b5d1ff83</id>
    </parent>
  </parents>
  <author>
    <name>Chris Wanstrath</name>
    <email>chris@ozmm.org</email>
  </author>
  <url>http://github.com/defunkt/choice/commit/1764a260e927632039d089de2d85c12264edbcba</url>
  <id>1764a260e927632039d089de2d85c12264edbcba</id>
  <committed-date>2009-08-06T14:14:13-07:00</committed-date>
  <authored-date>2009-08-06T14:14:13-07:00</authored-date>
  <message>Add Choice[:key] shortcut</message>
  <tree>263a1854f1520128078e0a6fd6d2247dc0c22b0e</tree>
  <committer>
    <name>Chris Wanstrath</name>
    <email>chris@ozmm.org</email>
  </committer>
</commit>
