Oliver Schroeder wrote:
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.

The options parsing itself is good as it is. But the options are parsed too many times. All options (including configuration files like .fgfsrc and .fgfsrc.hostname) are scanned three times. The first pass in search for fgroot, the second for an aircraft and in the third run all other options are used.

I'm sure this could be done all in one step. Parse the options and then access only the parsed data.

Nine


-------------------------------------------------------
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

Reply via email to