Instead of print/exit, use raise ValueError (although I think this else will never got executed, as the option parsing library already checks that it is a valid file/dir path