#NEWLINE# def argparse_type( variable ) : #NEWLINE# #INDENT# 'Return our argparse type function for a config variable (default: str)' #NEWLINE# for action in helpful_parser . parser . _actions : #NEWLINE# #INDENT# if ( ( action . type is not None ) and ( action . dest == variable ) ) : #NEWLINE# #INDENT# return action . type #NEWLINE# #UNINDENT# #UNINDENT# return str