do common checking regarding the value of the option More...
Inheritance diagram for Check:Public Member Functions | |
| def | __init__ (self, check_fn, error_msg='') |
| def | __call__ (self, action, value) |
Public Attributes | |
| fn | |
| err_msg | |
do common checking regarding the value of the option
example: p.add_argument('-input', remark=Check(lambda x: os.path.exists(x), 'File does not exists!'))