New keywords class that accepts any keywords
This commit is contained in:
parent
fc14c76b6d
commit
6cd299ab60
1 changed files with 21 additions and 0 deletions
|
@ -26,6 +26,27 @@ class NoKeyword(Abstract):
|
||||||
return super().check(mkw)
|
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():
|
def reload():
|
||||||
import imp
|
import imp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue