Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107944

Re: What should Python apps do when asked to show help?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
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 Sun, 1 May 2016 16:30:03 +0000 (UTC)
Lines 33
Message-ID <mailman.284.1462120216.32212.python-list@python.org> (permalink)
References <1462074388.273747.594588777.5E705539@webmail.messagingengine.com> <20160501052434.GA98660@cskk.homeip.net> <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>
X-Trace news.uni-berlin.de Oj8RUejmg1xnweblf+OOig/7QENAIxQPOEB8pc4NaYhw==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'builtin': 0.07; 'subject:help': 0.07; 'assumed': 0.09; 'cmd': 0.09; 'pointless': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'output': 0.13; 'do,': 0.15; 'discussions': 0.15; 'nope,': 0.16; 'personally,': 0.16; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:show': 0.16; 'subject:when': 0.16; 'wrote:': 0.16; 'app': 0.16; "wouldn't": 0.16; '>>>': 0.20; 'recognize': 0.22; 'simpler': 0.22; 'seems': 0.23; 'unix': 0.24; 'header:User-Agent:1': 0.26; 'command': 0.26; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'figure': 0.27; 'invoke': 0.29; 'sensible': 0.29; 'supposed': 0.31; 'option.': 0.33; 'could': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'faster': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'expect': 0.37; 'received:org': 0.37; 'application': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'you.': 0.64; 'industry': 0.70; 'edwards': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host 97-91-88-140.dhcp.roch.mn.charter.com
User-Agent slrn/1.0.2 (Linux)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <ng5aub$h6d$1@ger.gmane.org>
X-Mailman-Original-References <1462074388.273747.594588777.5E705539@webmail.messagingengine.com> <20160501052434.GA98660@cskk.homeip.net> <CAPTjJmr5E8zGB6Q0WWaja1DkZqac0SVm2X5eXOvYvd4YE3vZCg@mail.gmail.com> <ng51p3$c81$1@ger.gmane.org> <mailman.283.1462110832.32212.python-list@python.org> <87r3dlolx6.fsf@elektro.pacujo.net>
Xref csiph.com comp.lang.python:107944

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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