git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIT IoT-Lab aggregate: fixed archi and radio format
[sfa.git]
/
sfatables
/
command.py
diff --git
a/sfatables/command.py
b/sfatables/command.py
index
063caab
..
1cb58e7
100644
(file)
--- a/
sfatables/command.py
+++ b/
sfatables/command.py
@@
-3,16
+3,24
@@
import os, time
class Command:
options = []
help = ''
class Command:
options = []
help = ''
-
key='
'
+
type='command
'
matches = False
targets = False
matches = False
targets = False
+ action = 'store_const'
def __init__(self):
def __init__(self):
+ self.options = []
+ self.help = ''
+ self.type = 'command'
+ self.matches = False
+ self.targets = False
+ self.action = 'store_const'
+
return
return
- def call(self):
+ def call(self
, coptions, moptions, toptions
):
# Override this function
return True
# Override this function
return True
- def __call__(self,
option, opt_str, value, parser, *args, **kwarg
s):
- return self.call(
option
)
+ def __call__(self,
coptions, moptions, toption
s):
+ return self.call(
coptions,moptions,toptions
)