From owner-cvs-all Wed Jul 19 17: 0:39 2000 Delivered-To: cvs-all@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id E126637B67A; Wed, 19 Jul 2000 17:00:23 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id JAA45637; Thu, 20 Jul 2000 09:29:49 +0930 (CST) (envelope-from grog) Date: Thu, 20 Jul 2000 09:29:49 +0930 From: Greg Lehey To: Sheldon Hearn Cc: obrien@FreeBSD.org, Archie Cobbs , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c Message-ID: <20000720092949.D38899@wantadilla.lemis.com> References: <20000719062830.A15133@dragon.nuxi.com> <2153.964014378@axl.ops.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <2153.964014378@axl.ops.uunet.co.za> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 19 July 2000 at 15:46:18 +0200, Sheldon Hearn wrote: > > > On Wed, 19 Jul 2000 06:28:30 MST, "David O'Brien" wrote: > >>>> Make "ifconfig" with no arguments equivalent to "ifconfig -a". >> >> Please back this out. >> Getting a usage() message is just too useful. > > If that's your only reason, I don't think it's good enough. I don't either. I think that any program which can both change and list status should list it when invoked without arguments. sysctl(8) is another example. > I think "the UNIX way" to get usage() out of a program is ``progname > -?''. Others have contradicted this view. But maybe we should think of a consistent way to do it. I've always done something like 'foo -fdsafds' to force a usage message. Maybe -? should be acceptable, since it's what people will expect. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message