Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give better error messages for failing to parse a spec
Call make_specs() explicitly and handle exceptions from it in order to show the appropriate error message instead of letting argparse call it implicitly. As mentioned in that module documentation: > In general, the type keyword is a convenience that should only be used > for simple conversions that can only raise one of the three supported > exceptions. Anything with more interesting error-handling or resource > management should be done downstream after the arguments are parsed. And this is exactly what this commit does. Closes #117.
- Loading branch information