What should Python apps do when asked to show help?

Marko Rauhamaa marko at pacujo.net
Sun May 1 11:08:53 EDT 2016


Grant Edwards <grant.b.edwards at gmail.com>:

> On 2016-05-01, Chris Angelico <rosuav at gmail.com> wrote:
>> Okay. How is an app supposed to know whether or not to use a pager?
> Command line option.
>
>> How do you expect them to mindread?
> Nope, just recognize '-p' or somesuch.

In discussions like these, it would be important to draw from
precedents. Are there commands that have such an option?

I could only find:

   mysql --pager CMD

which seems sensible but nothing like an industry standard.

Personally, I wouldn't bother with builtin paging.


Marko



More information about the Python-list mailing list