Got 'Perspectives' menu working
[hooke.git] / hooke / command.py
index c822cc5984353b41485383ea26b18140418dd006..cb5490928caa9a309d66404379b49db2cc403fce 100644 (file)
@@ -99,7 +99,8 @@ class Command (object):
     ITEM:
     <BLANKLINE>
     """
-    def __init__(self, name, aliases=None, arguments=[], help=''):
+    def __init__(self, name, aliases=None, arguments=[], help='',
+                 plugin=None):
         # TODO: see_also=[other,command,instances,...]
         self.name = name
         if aliases == None:
@@ -110,6 +111,7 @@ class Command (object):
                      help='Print a help message.'),
             ] + arguments
         self._help = help
+        self.plugin = plugin
 
     def run(self, hooke, inqueue=None, outqueue=None, **kwargs):
         """`Normalize inputs and handle <Argument help> before punting