uclahs-cds/package-PipeVal

No validate done with -t is not set

Closed this issue · 0 comments

Is the file type auto-detected when -t is not set? No, it is not. The file type ends up as None, but does not error. No further validation is executed, and the file is then considered valid.

$ python -m validate foo
Input: foo is valid None

$ echo $?
0
Going through the code:

After parsing arguments and setting the input_type (which is None), this block does not match any conditions or catch any exceptions. The application exits here.