From owner-freebsd-hackers Sat Aug 12 17:17:33 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id RAA27010 for hackers-outgoing; Sat, 12 Aug 1995 17:17:33 -0700 Received: from UUCP-GW.CC.UH.EDU (UUCP-GW.CC.UH.EDU [129.7.1.11]) by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id RAA27004 for ; Sat, 12 Aug 1995 17:17:30 -0700 Received: from Taronga.COM by UUCP-GW.CC.UH.EDU with UUCP id AA05671 (5.67a/IDA-1.5); Sat, 12 Aug 1995 19:16:26 -0500 Received: by bonkers.taronga.com (smail2.5p) id AA09681; 12 Aug 95 19:15:41 CDT (Sat) Received: (from peter@localhost) by bonkers.taronga.com (8.6.11/8.6.6) id TAA09678; Sat, 12 Aug 1995 19:15:40 -0500 Date: Sat, 12 Aug 1995 19:15:40 -0500 From: Peter da Silva Message-Id: <199508130015.TAA09678@bonkers.taronga.com> To: rgrimes@gndrsh.aac.dev.com Subject: Re: Kernel configuration/compilation tool Newsgroups: taronga.freebsd.hackers In-Reply-To: <199508010417.VAA04479@gndrsh.aac.dev.com> Organization: Taronga Park BBS Cc: hackers@freebsd.org 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?