Re: PATCH: add dejagnu-report-card(1) tool (run as "dejagnu report card")
Ben Elliston <[email protected]>
| Newsgroups | gmane.comp.sysutils.dejagnu.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Dec 30, 2018 at 02:17:12AM -0600, Jacob Bachmeyer wrote: > The "dejagnu report card" form is an alias as long as there is no > "report" command -- the launcher sees "report", notes that "report" > is not a valid command, appends the next argument, checks again, and > finds that "report-card" is valid. If invoked as "dejagnu > report-card", the launcher sees "report-card", notes that that *is* > a valid command, and runs with it. I've never been fond of this because it makes backward compatibility a problem. If you introduce a "report" subcommand later, then users who have grown to love the "report card" shortcut will have to change their habits and/or scripts. One and only one command for each feature, IMHO. > This is for user convenience, along with the symlink-to-launcher > feature, which is intended to bring the commands into the $PATH > where Readline can find them. The symlink-to-launcher thing is OK with me. It's a small bit of code and is universal. Low maintenace. > That said, the dejagnu subcommands need canonical names for > documentation. Should those be like "dejagnu-report-card" (using a > launcher symlink) or "dejagnu report-card" (standard name for > launcher, explicit full name for command)? Why not just document them all in the dejagnu(1) man page? I see no reason why not. It's easy to hit / and search for the subcommand of interest. Cheers, Ben _______________________________________________ DejaGnu mailing list [email protected] https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEFS8+rdM1/2KWERKFZ9rcPj90NkkFAlwol1EACgkQZ9rcPj90 NkntahAArSMVbwMkIgU3bzdwZIF2OATmPnQKm3FerfJn9gTdmOKMOOhPW21b2GxX jcSQsdLvBUAMLGnCaKVq4AmidOnb79a18GyITDtTqtM8IowOsOcJ4/CK5YnSrgQX IPlvPy4+tbjRKIZb4CRV5QTk2CDbOvhzh7rrC+nM6nLQFpxMhXD6G+W7/JdNYXLS K9ZVDbT3rqrdEgMPTiNo9ZKR4O6/544Dc8r9KvChdHkR/maX1KRuZj9jRYKX20td sARBjjzLqAXiMTPqe6b22fVIZ8+dcNDSpwPc5dNeiA1UXfL0gq+J3vChe6Pw4HCj FtKu2u5Quv6oQt00Pcd8033a/fFFkZ6+XHE3RxwmgvZignJAU1eVaA4wJGkxzKCY dvwy8eLrdlqxYayNHBzFyVYVrj6ayQxvK55pVXPGkGHrbxgpN/xjWcE9W8vaQKIp sFxYGvoEng6TD/V1wx0fvOQGnfJ8DprKBHXXGJ7Rj/UMlDmRfUoJWMVMLxt0QLoN Zi4SLuejYy/Ue06EQ+hq7i4V2ozLABQeGYSmQ8q4SfzAsWnQ4sa9yELvg3x3T9tC IlpWfIgVuGOGRkbj7N/WI3HleuFKpvrEwHU/nPDmMyNTllSDQxQLmTUmkW9/aXHp 8IzJcIZaN4l6J/Iga7XI+QIlQMuRbKarYHEyw3F45JPfgmOBQNI= =HR9U -----END PGP SIGNATURE-----