command line options

Arthur David Olson ado at elsie.UUCP
Sat Apr 30 09:17:13 AEST 1988


Having a "usage" command that looks through the executable (a la "what")
to find a usage message makes it hard to produce "correct" output.

For example, the command
	usage date
such produce a message of the ilk
	date: usage is date [-u]
for normal users and a message such as
	date: usage is date [-u] [ yymmddhhmm[.ss] ]
(on a BSD-based system) for the root user.

There are other situations where usage is dependent on things that can't be
known at compile time.
-- 
	ado at ncifcrf.gov			ADO is a trademark of Ampex.



More information about the Comp.unix.wizards mailing list