More robust MOO_LOAD_PATH handling
Closed this issue · 1 comments
brettviren commented
The moo
cli gets tripped by badly formed MOO_LOAD_PATH
or similar abuse as cli arg
$ moo version
0.5.x
$ MOO_LOAD_PATH=/tmp moo version
0.5.x
$ MOO_LOAD_PATH=/tmp: moo version
Usage: moo [OPTIONS] COMMAND [ARGS]...
Try 'moo --help' for help.
Error: Invalid value for '-M' / '--mpath': Directory '' does not exist.
$ moo -M '' version
Usage: moo [OPTIONS] COMMAND [ARGS]...
Try 'moo --help' for help.
Error: Invalid value for '-M' / '--mpath': Directory '' does not exist.
brettviren commented
This error is actually click
doing its job.