usage() in install(1)

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Fri, 6 Feb 2004 12:06:05 +0200
Poul-Henning,

I was very puzzled today trying to understand what is this line
number that install(1) is telling me about, especially that I've
just run it without any options, to see its usage.

Please revert the part of the revision 1.62 where it was added.
I have the following reasons why it shouldn't have been done:

- It's mostly useless, because one should know that it refers to
  a source code line in xinstall.c (!), and have that source
  available.

- It's inspired by a lot of kernel programming, userland utils
  don't usually report line numbers of their sources, except
  for the assert() macro which is trying to catch programming
  (not usage) errors.  ;)

- There are only three cases where usage() is shown: traditional
  "bad option", traditional "incompatible options", traditional
  "missing or wrong number of arguments" (exactly like in cp(1)).

If you really need it, could you please keep it locally?  ;)

Or perhaps, that's a userland reply to the IP security option?
Then it should stay.  ;)


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru_at_FreeBSD.org

Received on Fri Feb 06 2004 - 01:05:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:41 UTC