click
click copied to clipboard
Should prompts work when the input file is stdin?
I'm trying to use the confirmation_option decorator. When I add an argument of type click.File('r') and give it '-' on the command line - the confirmation prompt is reading stdin instead of /dev/tty
I expect the confirmation prompt to be read from /dev/tty when the input file is stdin.
Is there a way to do this?
Apologies if I missed it in the documentation.
I understand there's getchar to read characters from the terminal.
relates to #300