Unix Programming - Re: Shouldn't getopt_long() return ':' for options requiring an

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2005 > Re: Shouldn't getopt_long() return ':' for options requiring an





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Shouldn't getopt_long() return ':' for options requiring an
Måns Rullgård

2005-04-25, 7:55 am

"Eric Lilja" <mindcooler_thisshouldberemoved@gmail.com> writes:

> Thank you, Måns, changing short_options from "" to ":" seems to work, then
> '?' is returned for unknown options and ':' is returned for options that
> require a value but none was supplied. Does this change to short_options
> alter the behaviour in any other way?


If the man page is correct, no.

--
Måns Rullgård
mru@inprovide.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com