Estimable Class Reference
+ Inheritance diagram for Estimable:

Public Member Functions

def __init__ (self, estimateText='', estimate=None, **kwargs)
 
def estimate (self, arguments)
 

Public Attributes

 estimateText
 
 estimate
 
 help
 

Detailed Description

 to be used in remark keyword of add_argument function

 example:
 p.add_argument("-outputdir", action=Estimable, estimateText='current directory', estimate=lambda args: os.getcwd()))

 parameter args is a namespace returned from parse_args
 this way, estimable_fn can be used to estimate based on user input (e.g. output_filename)