[Pkg-gpm-devel] Bug#288610: gpm: improve command line handling (inconsistent)

Peter Samuelson Peter Samuelson <peter@p12n.org>, 288610@bugs.debian.org
Wed, 5 Jan 2005 02:09:55 -0600


--opJtzjQTFsWo+cga
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


[Jari]
> Gpm accepts options 90 % of the tim in standard format "-OPTION
> PARAM", but following options are inconsistent in their usage
> compared to other options:

That's because -A, -R and -V can be used with or without arguments:

  -A means the same as -A0
  -R means the same as -Rmsc
  -V means the same as -V1

I hate this convention for the same reason you do: it causes confusion.
I don't like it in "perl -i" and I don't like it here.  However,
changing anything risks breaking an append= line somewhere.  And
there's the small matter of being command-line-compatible with upstream
(read: Least Surprise for new users from other distributions).

It would almost be possible to detect whether the following parameter
looks like its own argument or appears to belong to the -A/-R/-V.
However, there is no way to disambiguate the case of "-V -2".

Thanks for the report,
Peter

--opJtzjQTFsWo+cga
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB26DTXk7sIRPQRh0RAtFnAKCpB39viOkRtOYdmHTIHPgIExixPgCfU9gF
I1tK7e3WrGf3P3QFJTyTRsA=
=22EH
-----END PGP SIGNATURE-----

--opJtzjQTFsWo+cga--