What should Python apps do when asked to show help?
Paul Rubin
no.email at nospam.invalid
Thu Apr 28 22:15:20 EDT 2016
Steven D'Aprano <steve at pearwood.info> writes:
> (1) print the help text to stdout;
> (2) run the help text through a pager;
Stdout unless the PAGER env var is set. Otherwise, I'd say still stdout
since the person can pipe it through a pager if they want, but you could
use the pager or be fancy and try to detect if stdout is a pty/tty
before using the pager. Git pages by default and it bugs me because I
tend to use git commands in emacs shell windows and the pager makes a
mess.
More information about the Python-list
mailing list