🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.announce
Article #2582

Results of poll on long options

#2582
From: Richard Stallman
Date: Thu, 14 Nov 1991 13:15
41 lines
2511 bytes
A few weeks ago I asked the users whether we should change the syntax
for long options in GNU software to make them start with `--'.  124
responses favored the change, which would lead to syntax like `rm
--force *~'

Many of the users said that `--' was easier to type than the current
prefix `+'.

34 people preferred the current `+' prefix.

26 people asked for `-+', but I think `--' is better since it is
easier to type.

15 responses objected to `--' because of a supposed conflict with
the meaning of "end of options".  However, there is no conflict.  `--'
as an argument in itself would end the options; `--' followed by more
text would be a long option.  Currently `-' has a meaning as an
argument by itself and also introduces options, and this dual meaning
seems to be no problem.

About 8 people said we should support both `+' and `--', but this does
not seem like a lot of support.  We might support both for a while.

Some people said that long options should start with just `-', as in
`rm -force *~'.  But this does not accomplish compatibility with
POSIX, which requires programs to support combining single-letter
options in one argument.  (For exampe, `rm -rf ...'.)

Since people actually use these combinations, they are not just a
pedantic issue.  Besides, it is supposed to be possible to abbreviate
a long option, even with a single letter if the abbreviation is
unique.  So `rm --f' is short for `rm --force'.  This can't be done
in general if we use the same delimiter for both kinds of options.

A few people suggested other single character prefixes, but these have
the same POSIX problem as our current syntax and seem to offer no
advantage.

A few suggested `-' followed by some other character.  One of these is
promising: `-=', which is also easy to type.  I think I will therefore
make a new poll to ask people to choose between `-=' and `--'.
Technical Details
Message-ID: <9111142315.AA21807@mole.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!rms

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fba7b,8742fc0e1a148ea,start
X-Google-Attributes: gidfba7b,public
X-Google-ArrivalTime: 1991-11-14 05:15:41 PST
Path: arc1-ca.pugleaf.net!gmdzi!ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!rms
From: rms@gnu.ai.mit.edu (Richard Stallman)
Newsgroups: gnu.announce
Subject: Results of poll on long options
Message-ID: <9111142315.AA21807@mole.gnu.ai.mit.edu>
Date: 14 Nov 91 13:15:41 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 41
Approved: info-gnu@prep.ai.mit.edu