You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using click.prompt with both click.Path and a default value, any user input will be validated through click.Path, but the default value will not be.
Example:
>>>importclick>>>click.prompt('Path', type=click.Path(exists=True), default='/invalid/path')
# Invalid user input raises errorPath [/invalid/path]: /some/other/invalid/pathError: Path"/some/other/invalid/path"doesnotexist.
# Invalid default value does not raise errorPath [/invalid/path]:
'/invalid/path'
Tested with click 6.7, and python 2.7.13 and 3.6.1.