Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2008 09:29:47 -0800
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Andrea Di Pasquale <spikey.it@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Options handler for userspace programs
Message-ID:  <492C360B.8080304@freebsd.org>
In-Reply-To: <5D9F392B-97B5-4812-B5CB-047193715A94@gmail.com>
References:  <5D9F392B-97B5-4812-B5CB-047193715A94@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"
> 
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?492C360B.8080304>