a little nicer wrt pep8
[sfa.git] / sfatables / command.py
1 import os, time
2
3 class Command:
4     options = []
5     help = ''
6     type='command'
7     matches = False
8     targets = False
9     action = 'store_const'
10
11     def __init__(self):
12         self.options = []
13         self.help = ''
14         self.type = 'command'
15         self.matches = False
16         self.targets = False
17         self.action = 'store_const'
18
19         return
20
21     def call(self, coptions, moptions, toptions):
22         # Override this function
23         return True
24
25     def __call__(self, coptions, moptions, toptions):
26         return self.call(coptions,moptions,toptions)