Make subcommands finally work properly
authorIan Weller <ian@ianweller.org>
Fri, 18 Dec 2009 16:51:59 +0000 (10:51 -0600)
committerIan Weller <ian@ianweller.org>
Fri, 18 Dec 2009 16:51:59 +0000 (10:51 -0600)
src/mw/cli.py

index a822ff24c371eaa499f993c97e49725fa0ef7d73..d5dd6dc875d7699262868674e04019990b2bf9c2 100644 (file)
@@ -69,4 +69,4 @@ class CLI(object):
         if len(sys.argv) == 1:
             self.usage()
         # woo let's go
         if len(sys.argv) == 1:
             self.usage()
         # woo let's go
-        self.commands[the_command].main()
+        self.all_commands[the_command].main()

Benjamin Mako Hill || Want to submit a patch?