On Thursday 22 December 2005 14:57, Frederic Bouvier wrote: > Oliver Schroeder wrote: > > Would it help to have a generic central commandline-parser, which forces > > developers to provide a description? > > Perhaps you should provide us a definition for a generic central > commandline-parser, because I always thought it was already the case ( I am > biased, I wrote this code ). Options are described in a single array of > structures and the processing is very simple and generic. Have a look at > options.cxx. Maybe it can be improved, by providing descriptions for > instance, but the step was made years ago to avoid to have huge switch or > if/elseif/else constructs that compilers could not compile.
Yes, I noticed options.?xx before. And I did'nt explicitly meant that part. But cd into the src directory and do a "grep -r argv *". What you will see is for sure not simple and generic. And I just thought it might be helpful to sort things out. I did'nt look too deep into that matter, but there are certainly things to fix. As said before, no offense meant. regards, Oliver ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel