From owner-freebsd-hackers Sat Aug 12 19:46:21 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id TAA01394 for hackers-outgoing; Sat, 12 Aug 1995 19:46:21 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id TAA01387 for ; Sat, 12 Aug 1995 19:46:17 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id TAA08220; Sat, 12 Aug 1995 19:45:51 -0700 From: "Rodney W. Grimes" Message-Id: <199508130245.TAA08220@gndrsh.aac.dev.com> Subject: Re: Kernel configuration/compilation tool To: peter@bonkers.taronga.com (Peter da Silva) Date: Sat, 12 Aug 1995 19:45:50 -0700 (PDT) Cc: hackers@freebsd.org In-Reply-To: <199508130015.TAA09678@bonkers.taronga.com> from "Peter da Silva" at Aug 12, 95 07:15:40 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 890 Sender: hackers-owner@freebsd.org Precedence: bulk > > In article <199508010417.VAA04479@gndrsh.aac.dev.com>, > Rodney W. Grimes wrote: > >getopts helped, but it is just too primative, offers no data type checking, > >causes _tons_ of duplicated code, etc. > > "Parseargs" by Eric Allman, and modified by myself and Brad Appleton of > Harris, does an excellent job. It also lets you write commands that use > unix-style options for UNIX systems, dos style options for DOS systems, > amiga style options (which are like DD's) for Amiga systems, and VMS > style options for VMS systems, depending on which version of the library > you link with. It also generates usage messages at three levels of verbosity. > > Anyone want to see the code? YES! I do! -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD