From owner-freebsd-current@FreeBSD.ORG Tue Nov 25 17:23:28 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 72C451065672 for ; Tue, 25 Nov 2008 17:23:28 +0000 (UTC) (envelope-from spikey.it@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.188]) by mx1.freebsd.org (Postfix) with ESMTP id 09D628FC08 for ; Tue, 25 Nov 2008 17:23:27 +0000 (UTC) (envelope-from spikey.it@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so28133gve.39 for ; Tue, 25 Nov 2008 09:23:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=mxT52WyDjUiyEy3+8cZveCnQ4OM5rlsfzPqwaInAiSI=; b=Sha+uChaNBQWqI64W6+jeoKhgu0WmZx5NbRJKIVHm/7axe8E7TLeNCfCjV5VRgUtHx AClAY6H3M/DKSbz0wFfC/yHzYz7KtkjvLXhZulHw6/COGCbz6cSTIhkrqX7jyoy9p59I Qc3FU9PvLPB6a+Ip2ZaER8T2t/dRgocgcqhds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=ioeWtohmUI543gI/iNk9e736Ai4k3zan8YCYGa80ZyD+MvVFBneTyU3arIYqB1s4Ht +mgEMO6H+P7smFMJvb7ScncA7g9KSK08azAa7lnpKNcx5mnIFfLCl/yvKLRJPFe7NL/4 bxMcn+W2w895z17SVraXbDLhPa4n+gVaR1ikY= Received: by 10.86.59.18 with SMTP id h18mr3088222fga.31.1227632037199; Tue, 25 Nov 2008 08:53:57 -0800 (PST) Received: from manson.homenet.telecomitalia.it (host8-96-dynamic.52-79-r.retail.telecomitalia.it [79.52.96.8]) by mx.google.com with ESMTPS id e20sm8268451fga.1.2008.11.25.08.53.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Nov 2008 08:53:55 -0800 (PST) Message-Id: <5D9F392B-97B5-4812-B5CB-047193715A94@gmail.com> From: Andrea Di Pasquale To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 25 Nov 2008 17:53:53 +0100 X-Mailer: Apple Mail (2.929.2) Subject: 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:23:28 -0000 Hi! I seen that all freebsd' s programs use getopt() or sequence =20 options with arguments. I wanna to propose new options handler that handle name or alias for =20 options and option's argument, example no argument, required one or two arguments, =20= required argument with 2=B0 option argument and one or two optional arguments. Can it useful for freebsd? Regards, Andrea=