VirtualMailManager/cli/main.py
branchv0.6.x
changeset 420 d4a341248500
parent 417 8209da83e256
child 568 14abdd04ddf5
--- a/VirtualMailManager/cli/main.py	Thu Feb 24 22:15:10 2011 +0000
+++ b/VirtualMailManager/cli/main.py	Sun Feb 27 14:35:04 2011 +0000
@@ -16,7 +16,8 @@
 from VirtualMailManager.cli.handler import CliHandler
 from VirtualMailManager.constants import DATABASE_ERROR, EX_MISSING_ARGS, \
      EX_SUCCESS, EX_UNKNOWN_COMMAND, EX_USER_INTERRUPT, INVALID_ARGUMENT
-from VirtualMailManager.cli.subcommands import RunContext, cmd_map, usage
+from VirtualMailManager.cli.subcommands import RunContext, cmd_map, \
+     update_cmd_map, usage
 
 
 _ = lambda msg: msg
@@ -35,6 +36,7 @@
 
 
 def run(argv):
+    update_cmd_map()
     if len(argv) < 2:
         usage(EX_MISSING_ARGS, _(u"You must specify a subcommand at least."))