A module containing common-use subroutines for options parsing in scripts. These are designed to be used with the argparse package that should be used for all argument parsing from this point on!
Basically these are a bunch of custom callables that takes a single string argument and return a converted value for use with the ‘type’ option.
module_version: | 1.0 |
---|---|
created_on: | 2013-04-05 |
Checks to see if the string is a valid input path
Returns the full path of the string if true, otherwise raise a custom exception.
Checks to see if the string is a valid input file
Returns the full path of the string if true, otherwise raise a custom exception.