-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File option - prompting with pretty default? #914
Comments
Can't reproduce on Mac - Python 3.6.2, Click 6.7...
|
Oh, @tomgoren, this isn't meant to be reproduced as is. If you want to:
Sorry for late reply and writing bad issues... |
Okay - I see it now @mvolfik. The problem seems to be here. There is only one value returned, So, while the output would be as expected, it would produce the wrong result if you were to try something like
After digging a bit deeper, there seems to be a whole song and dance between The long and the short of it is that I got a bit lost, and I'm sorry I wasn't able to help more, but it seems like an actual bug, and a tricky one at that. I'm very curious to see how this is solved either way. Good luck! |
Starting to work on it |
PR Created #1309 |
Hello,
I'm developing simple script, but I have found horrible default when using a file option with prompting with default value...
I have this code:
But when I call it, it produces prompt like this:
Is this solved anywhere or how difficult would it be to fix it, so it would show
[/home/me/directory/subdir/file.txt]
?Ubuntu 16.04 LTS 32-bit, Python 3.5.2, click 6.7
Please excuse any imperfections of this issue, I'm quite new to GitHub and haven't written any issues yet...
The text was updated successfully, but these errors were encountered: