click icon indicating copy to clipboard operation
click copied to clipboard

Should prompts work when the input file is stdin?

Open bryder opened this issue 10 years ago • 1 comments

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.

bryder avatar Mar 05 '15 02:03 bryder

relates to #300

fdavis avatar May 15 '18 15:05 fdavis