Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107944
| From | Grant Edwards <grant.b.edwards@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: What should Python apps do when asked to show help? |
| Date | 2016-05-01 16:30 +0000 |
| Message-ID | <mailman.284.1462120216.32212.python-list@python.org> (permalink) |
| References | (2 earlier) <CAPTjJmr5E8zGB6Q0WWaja1DkZqac0SVm2X5eXOvYvd4YE3vZCg@mail.gmail.com> <ng51p3$c81$1@ger.gmane.org> <mailman.283.1462110832.32212.python-list@python.org> <87r3dlolx6.fsf@elektro.pacujo.net> <ng5aub$h6d$1@ger.gmane.org> |
On 2016-05-01, Marko Rauhamaa <marko@pacujo.net> wrote: > Grant Edwards <grant.b.edwards@gmail.com>: > >> On 2016-05-01, Chris Angelico <rosuav@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? It's pretty rare. It is assumed that Unix uses can type " | less" if they want to view the output of a program with a pager. That's simpler and faster than spending time to try to figure out if and how you tell some particular application to invoke a pager for you. > I could only find: > > mysql --pager CMD > > which seems sensible but nothing like an industry standard. > > Personally, I wouldn't bother with builtin paging. I agree completely. Builtin paging is pretty much pointless -- but if you _are_ going to do, make it something that you invoke with a command line option. -- Grant
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: What should Python apps do when asked to show help? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-01 13:53 +0000
Re: What should Python apps do when asked to show help? Marko Rauhamaa <marko@pacujo.net> - 2016-05-01 18:08 +0300
Re: What should Python apps do when asked to show help? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-01 16:30 +0000
Re: What should Python apps do when asked to show help? Steven D'Aprano <steve@pearwood.info> - 2016-05-02 02:36 +1000
Re: What should Python apps do when asked to show help? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-01 17:04 +0000
Re: What should Python apps do when asked to show help? Steven D'Aprano <steve@pearwood.info> - 2016-05-02 11:48 +1000
Re: What should Python apps do when asked to show help? Terry Reedy <tjreedy@udel.edu> - 2016-05-02 02:34 -0400
Re: What should Python apps do when asked to show help? Gene Heskett <gheskett@wdtv.com> - 2016-05-01 13:09 -0400
Re: What should Python apps do when asked to show help? Random832 <random832@fastmail.com> - 2016-05-01 13:49 -0400
Re: What should Python apps do when asked to show help? Ethan Furman <ethan@stoneleaf.us> - 2016-05-01 10:54 -0700
csiph-web