Flesh out command stack execution.
[hooke.git] / hooke / command.py
index 974e3b5e7f121b65d153c517de027f164c74ac11..d88155c7a69cf1dc6b414da28ab683e32ead828b 100644 (file)
@@ -109,6 +109,8 @@ class Command (object):
         self.arguments = [
             Argument(name='help', type='bool', default=False, count=1,
                      help='Print a help message.'),
+            Argument(name='stack', type='bool', default=True, count=1,
+                     help='Add this command to appropriate command stacks.'),
             ] + arguments
         self._help = help
         self.plugin = plugin
@@ -250,9 +252,6 @@ class Argument (object):
         """
         pass # TODO: validation
 
-    # TODO: type conversion
-
-# TODO: type extensions?
 
 # Useful callbacks