New keywords class that accepts any keywords

This commit is contained in:
nemunaire 2016-03-03 19:19:25 +01:00
parent 226785af19
commit fb670b0777

View File

@ -26,6 +26,27 @@ class NoKeyword(Abstract):
return super().check(mkw)
class AnyKeyword(Abstract):
def __init__(self, h):
"""Class that accepts any passed keywords
Arguments:
h -- Help string
"""
super().__init__()
self.h = h
def check(self, mkw):
return super().check(mkw)
def help(self):
return self.h
def reload():
import imp