(no commit message)
[sfa.git] / sfatables / commands / Add.py
index 063caab..d8bd9a7 100644 (file)
@@ -1,18 +1,16 @@
 import os, time
+from sfatables.command import Command
 
-class Command:
-    options = []
-    help = ''
-    key=''
-    matches = False
-    targets = False
+class Add(Command):
+    options = [('-A','--add')]
+    help = 'Add a rule to a chain'
+    matches = True
+    targets = True
 
     def __init__(self):
         return
 
-    def call(self):
+    def call(self, command_options, match_options, target_options):
         # Override this function
         return True
 
-    def __call__(self, option, opt_str, value, parser, *args, **kwargs):
-        return self.call(option)