title: How should I implement "nested" subcommands in Python?
body: <p>Implementing "nested" subcommands in Python with cmdln.</p>
  
  <p>I'm not sure I'm using the right terminology here. I'm trying to implement a commandline tool using <a href="http://code.google.com/p/cmdln/" rel="noreferrer">cmdln</a> that allows for "nested" subcommands. Here is a real world example:</p>
  
  <pre><code>git svn rebase
  </code></pre>
  
  <p>What is the best way of implementing this? I've been searching for more information on this in the doc, here and the web at large, but have come up empty. (Perhaps I was searching with the wrong terms.)</p>
  
  <p>Short of an undocumented feature that does this automatically, my initial thought was to have the previous subcommand handler determine that there is another subcommand and dispatch the command dispatcher again. I've looked at the internals of cmdln though and the dispatcher is a private method, _dispatch_cmd. My next thought is to create my own sub-sub-command dispatcher, but that seems less than ideal and messy.</p>
  
  <p>Any help would be appreciated.</p>