root = fgScanForOption( "--fg-root=", argc, argv);
// Check in one of the user configuration files.
- root = fgScanForOption( "--fg-root=" );
+ if (root.empty() )
+ root = fgScanForOption( "--fg-root=" );
// Next check if fg-root is set as an env variable
if ( root.empty() ) {
aircraft = fgScanForOption( "--aircraft=", argc, argv );
// Check in one of the user configuration files.
- aircraft = fgScanForOption( "--aircraft=" );
+ if ( aircraft.empty() )
+ aircraft = fgScanForOption( "--aircraft=" );
// if an aircraft was specified, set the property name
if ( !aircraft.empty() ) {