(no commit message)
[sfa.git] / sfatables / command.py
index 063caab..5a33928 100644 (file)
@@ -3,16 +3,17 @@ import os, time
 class Command:
     options = []
     help = ''
-    key=''
+    type='command'
     matches = False
     targets = False
+    action = 'store_const'
 
     def __init__(self):
         return
 
-    def call(self):
+    def call(self, coptions, moptions, toptions):
         # Override this function
         return True
 
-    def __call__(self, option, opt_str, value, parser, *args, **kwargs):
-        return self.call(option)
+    def __call__(self, coption, moptions, toptions):
+        return self.call(coptions,moptions,toptions)