Bringing back to the list private part of discussion
On Sun, Aug 02, 2020 at 12:51:17PM +0200, Ralf Hemmecke wrote:
> On 8/2/20 3:51 AM, Waldek Hebisch wrote:
> > On Sat, Aug 01, 2020 at 03:37:38PM +0200, Ralf Hemmecke wrote:
>
> > Apparently you think that using two dashes for options is
> > somewhat superior to single dash. Can you give rational
> > argument why?
>
> Giving rational arguments is admittedly a bit hard.
> But there are conventions that could be followed. So why not?
>
>
https://nullprogram.com/blog/2020/08/01
>
> Another reason is: we should definitely add --help and --version (with
> double dash) since they are quite common nowadays.
> If all other options are single-dash, then at least I find this confusing.
Well, double dash options apparenty were started by GNU folks.
Look at flagship GNU program, that is gcc. Typing
gcc -v --help
gives you long list of options. A lot uses double dash, but
a lot of multicharacter options uses single dash. There are
conventions, but this is much more complicated than "multicharacter
options use double dash". Or look at 'find', there are many
multicharacter options using single slash, with no apparent
double alternative.
More generally, double dash options appeared to add new options
to existing programs without conflict with existing single dash
options. When there were no danger of conflicts there is no
need to insist on double dash options (as gcc and find show).
> Argument that this means that we should just add -help and -version
> (single dash), is no benefit for users. When I try a program I use
> definitely double dashes, maybe -v, but -v could also mean "verbose".
>
> >> I deliberately only deprecated single dash long options (of course -h is
> >> kept, because it's a short option) and did not remove it.
> >
> > If you deprecate something and do not want to remove it, then
> > deprecation is pure FUD, and FUD is harmful for project.
>
> My intention for deprecation was indeed to warn users that at some point
> in the future single dash long options are a candidate for removal.
> Deprecation gives everyone time to adapt to a new "feature".
>
> > How you would feel about adding double dash support but
> > documenting this as deprecated?
>
> Well, that's. of course, nonsense. Adding something that at the same
> time is deprecated. Then adding is useless and I wouldn't propose it.
> It's about deprecating old behaviour.
>
> > If you plan removal, then it is appropriate to discuss
> > removal.
>
> Yes. I agree. Let's discuss this publicly.
>
> > I gave you two reasons for keeping current state.> To repeat:
> >
> > - single dash is shorter. Rationally, this should not be
> > a big deal, but I spent enough time interacting with
> > users to know that there is strong preference to
> > shorter versions.
> > - confusion. Either in Orwellian way we pretend that past
> > does not exist, or we need conditional description
>
> > If there is enough benefits, we may accept that costs are
> > acceptable.
>
> The costs are currently on my side. Since I have already done the patch.
> Now the question is whether enough user think that providing double-dash
> versions is a benefit.
Well, let me mention here anecdote from newsgroups. Lynn Wheeler
implemented support for FBA disks in IBM VM operating system.
This was working, tested code. Initially IBM rejected proposed
change, because cost of "implementing" it would be too high.
"Implementing" meant change to manuals mentioning new support
(AFAIK few pages of text) and propagating info to salesmen
and users. IIRC estimated cost was 28 million dolars, which
almost surely is 50 times larger than cost of coding and
lilely more than 1000 times more costly.
Times have changed, but if yor change goes in cost for other
folks will be much higher than your coding "cost". To put
it differently, it is likely that I would be able to code
such change in 1% of time spent writing messages discussing
the change.
> I do not insist on the sentence about "deprecating single dash". I did
> not expect that there would be any opposition against introducing double
> dashes.
Well, I do not like introducing double dash as alternative (as
having single way makes thing simpler to explain), but otherwise
no strong reason against such change. IMO main thing is to
replace obsolete message about workspaces by help.
--
Waldek Hebisch