Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: What should Python apps do when asked to show help? Date: Sun, 1 May 2016 13:53:39 +0000 (UTC) Lines: 31 Message-ID: References: <1462074388.273747.594588777.5E705539@webmail.messagingengine.com> <20160501052434.GA98660@cskk.homeip.net> X-Trace: news.uni-berlin.de 3PImOz3i/AdyjyLjLuL3Zg51yuaZ5iUUZl41UzQ9uIlg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'subject:help': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'apps': 0.15; '2016': 0.16; 'nope,': 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; 'specifies': 0.18; 'variable': 0.18; 'preferred': 0.20; 'so.': 0.22; 'recognize': 0.22; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'command': 0.26; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'specify': 0.27; 'invoke': 0.29; 'environment': 0.29; 'supposed': 0.31; 'option.': 0.33; 'editor': 0.34; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'setting': 0.37; 'say': 0.37; 'received:org': 0.37; 'does': 0.39; 'to:addr:python.org': 0.40; 'programs': 0.62; 'personal': 0.63; 'inform': 0.79; 'why?': 0.91; 'yes!': 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <1462074388.273747.594588777.5E705539@webmail.messagingengine.com> <20160501052434.GA98660@cskk.homeip.net> Xref: csiph.com comp.lang.python:107941 On 2016-05-01, Chris Angelico wrote: > On Sun, May 1, 2016 at 3:24 PM, wrote: >> Yes, PAGER=cat would make "man" also not page, and likely almost everything. >> And yet I am unwilling to do so. Why? >> >> On reflection, my personal problems with this approach are twofold: >> >> - I want $PAGER to specify my preferred pager when I do want a pager, so >> setting it to "cat" does not inform apps about my wishes > > So you expect the environment variable to say which of multiple pagers > you might want, but only when you already want a pager. Yes! Just like EDITOR specifies which editor to use _when_ _you_ _want_ _to_ _use_ _an_ _editor_. It doesn't tell programs to invoke an editor all the time. > 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. -- Grant