GNU bug report logs - #7622
[PATCH] lib-src/emacsclient.c: Change -H to -h. Order options alphabetically

Previous Next

Package: emacs;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Sun, 12 Dec 2010 14:43:02 UTC

Severity: wishlist

Tags: patch

Found in version 23.2+1-5.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: jaalto <jari.aalto <at> cante.net>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 7622 <at> debbugs.gnu.org
Subject: bug#7622: [PATCH] lib-src/emacsclient.c: Change -H to -h. Order options alphabetically
Date: Wed, 11 Apr 2012 08:21:52 +0300
On 2012-04-11 01:48, Lars Magne Ingebrigtsen wrote:
| Jari Aalto <jari.aalto <at> cante.net> writes:
| 
| > The patch changes help option to lowercase -h like found e.g. in GNU
| > cp(1). The option help is also presented alphabetically.
| 
| [larsi <at> stories ~/src/emacs/trunk]$ cp -h
| cp: invalid option -- 'h'
| 
| So I don't think this change would be correct.

I remembered wrong. GNU uses --long options for cp(1) and mv(1); I
assume because it wanted to reserve all short options.

But almot universally lowercase -h, is understood as a synonym for
--help. At least for emacsclient that would work well as there are no
conflicting options[*].

The patch would also make the listing a little easier; alphabetical as
in GNU programs in general.

Jari

[*] -H and -h could have been taken to mean something else for
historical reasons in other programs.




This bug report was last modified 13 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.