X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fcommand.py;h=1cb58e7d6d2262a07e8d62cf74f4c3b4fe47fc71;hb=b436db52dc72f2c2e0f271b4d164f477c7672845;hp=5a33928925d3b4802c93aaf67149f444e99d0593;hpb=ca033bfcc5afa7b9633f9caba9e9b1691222cbf2;p=sfa.git diff --git a/sfatables/command.py b/sfatables/command.py index 5a339289..1cb58e7d 100644 --- a/sfatables/command.py +++ b/sfatables/command.py @@ -9,11 +9,18 @@ class Command: action = 'store_const' def __init__(self): + self.options = [] + self.help = '' + self.type = 'command' + self.matches = False + self.targets = False + self.action = 'store_const' + return def call(self, coptions, moptions, toptions): # Override this function return True - def __call__(self, coption, moptions, toptions): + def __call__(self, coptions, moptions, toptions): return self.call(coptions,moptions,toptions)