The option_parsing library that we are using is from cogent and it is a extended library. It now is in pyqi (or qcli). It depends on the type of the option. In this case, the option type is 'existing_path' so it just checks that it exists. Other types are: existing_filepath and existing_dirpath, and they explicitly check if it is a file or a directory, respectivelly.