Closed clegaspi closed 2 years ago
Looks like we just need to check sys.stdin.isatty()
(source) in TextReader._read_stdin()
and quit if the process was not invoked with a pipe or file redirect.
If the application was started this way, we should raise an exception from that function and then catch it somewhere in the CLI to have it output the --help
content.
The cli hangs when invoked as:
instead of one of these:
This is because it is waiting for input from
stdin
. How long do we let it wait? Can we kill it if it doesn't have any data in it already?