git://git.onelab.eu
/
sfa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
(no commit message)
[sfa.git]
/
sfatables
/
commands.py
1
import os, time
2
3
class Command:
4
options = []
5
help = ''
6
key=''
7
matches = False
8
targets = False
9
10
def __init__(self):
11
return
12
13
def call(self):
14
# Override this function
15
return True
16
17
def __call__(self, option, opt_str, value, parser, *args, **kwargs):
18
return self.call(option)