From owner-freebsd-current@FreeBSD.ORG Tue Nov 25 17:29:52 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93EE91065708 for ; Tue, 25 Nov 2008 17:29:52 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 75E468FC1A for ; Tue, 25 Nov 2008 17:29:52 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.178] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mAPHTqtv062294; Tue, 25 Nov 2008 09:29:52 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <492C360B.8080304@freebsd.org> Date: Tue, 25 Nov 2008 09:29:47 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrea Di Pasquale References: <5D9F392B-97B5-4812-B5CB-047193715A94@gmail.com> In-Reply-To: <5D9F392B-97B5-4812-B5CB-047193715A94@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Re: Options handler for userspace programs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 17:29:52 -0000 Have you looked at getopt_long, which is in the standard FreeBSD C libraries? man 3 getopt_long The use of getopt() in most utilities instead of getopt_long() is a very deliberate choice. Tim Kientzle Andrea Di Pasquale wrote: > Hi! I seen that all freebsd' s programs use getopt() or sequence > options with arguments. > I wanna to propose new options handler that handle name or alias for > options and > option's argument, example no argument, required one or two arguments, > required > argument with 2° option argument and one or two optional arguments. > Can it useful for freebsd? > > Regards, > Andrea_______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > >