On Tue, 2010-08-31 at 22:04 +0200, András Murányi wrote:
On Tue, Aug 31, 2010 at 4:02 AM, Hans-Christoph Steiner hans@at.or.at wrote:
That's a bug in the command line flag parsing, you should file a bug report. IMHO, the whole flag parser should be rewritten using on of the standard opt/flag parsing libraries. getopt is in libc but is more limited, I am sure there is a GNU parser that handles -s short and --long options well.
http://sourceforge.net/projects/argopt/ (inactive project, wonder if it's usable yet) http://directory.fsf.org/project/popt/ (x11 licence) i don't know is this is serious enough: http://wiki.tcl.tk/22050
Well, we'd want it to be something that is already widely deployed, like something in GNU libc or POSIX. popt looks pretty well used, at least on Debian/Ubuntu, but I think getopt() and getopt_long() are just about everywhere by default now.
.hc