If checking for an existing path only please use the API available in argparse (`type=argparse.FileType('r')`) rather then implement a custom check function.