1 // options.cxx -- class to handle command line options
3 // Written by Curtis Olson, started April 1998.
5 // Copyright (C) 1998 Curtis L. Olson - curt@me.umn.edu
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #if defined(FX) && defined(XMESA)
29 bool global_fullscreen = true;
32 #include <Include/compiler.h>
34 #include <math.h> // rint()
36 #include <stdlib.h> // atof(), atoi()
41 #include <Debug/logstream.hxx>
42 #include <Misc/fgstream.hxx>
43 #include <Include/fg_constants.h>
44 #include <Include/general.hxx>
45 #include <Cockpit/cockpit.hxx>
46 #include <FDM/flight.hxx>
48 # include <Network/network.h>
50 #include <Time/fg_time.hxx>
52 #include "options.hxx"
53 #include "fg_serial.hxx"
56 FG_USING_NAMESPACE(std);
59 extern void fgReshape( int width, int height );
62 atof( const string& str )
66 // -dw- if ::atof is called, then we get an infinite loop
67 return std::atof( str.c_str() );
69 return ::atof( str.c_str() );
74 atoi( const string& str )
77 // -dw- if ::atoi is called, then we get an infinite loop
78 return std::atoi( str.c_str() );
80 return ::atoi( str.c_str() );
84 // Defined the shared options class here
85 fgOPTIONS current_options;
89 fgOPTIONS::fgOPTIONS() :
90 // starting longitude in degrees (west = -)
91 // starting latitude in degrees (south = -)
93 // Default initial position is Globe, AZ (P13)
97 // North of the city of Globe
101 // North of the city of Globe
105 // Near where I used to live in Globe, AZ
109 // 10125 Jewell St. NE
113 // Near KHSP (Hot Springs, VA)
114 // lon(-79.8338964 + 0.01),
115 // lat( 37.9514564 + 0.008),
117 // (SEZ) SEDONA airport
118 // lon(-111.7884614 + 0.01),
119 // lat( 34.8486289 - 0.015),
121 // Jim Brennon's Kingmont Observatory
122 // lon(-121.1131667),
125 // Huaras, Peru (S09d 31.871' W077d 31.498')
129 // Eclipse Watching w73.5 n10 (approx) 18:00 UT
134 // lon(-90.1953055556),
135 // lat( 45.4511388889),
137 // starting altitude in meters (this will be reset to ground level
138 // if it is lower than the terrain
141 // Initial Orientation
142 heading(270.0), // heading (yaw) angle in degress (Psi)
143 roll(0.0), // roll angle in degrees (Phi)
144 pitch(0.424), // pitch angle in degrees (Theta)
146 // Initialize current options velocities to 0.0
147 uBody(0.0), vBody(0.0), wBody(0.0),
155 control_mode(FG_JOYSTICK),
156 auto_coordination(FG_AUTO_COORD_NOT_SPECIFIED),
163 // Flight Model options
164 flight_model( FGInterface::FG_LARCSIM ),
165 model_hz( NEW_DEFAULT_MODEL_HZ ),
169 fog(FG_FOG_NICEST), // nicest
178 view_mode(FG_VIEW_FIRST_PERSON),
184 units(FG_UNITS_FEET),
190 // set initial values/defaults
191 time_offset_type=FG_TIME_SYS_OFFSET;
192 char* envp = ::getenv( "FG_ROOT" );
194 if ( envp != NULL ) {
195 // fg_root could be anywhere, so default to environmental
196 // variable $FG_ROOT if it is set.
199 // Otherwise, default to a random compiled in location if
200 // $FG_ROOT is not set. This can still be overridden from the
201 // command line or a config file.
204 fg_root = "\\FlightGear";
205 #elif defined( MACOS )
212 airport_id = ""; // default airport id
213 net_id = "Johnney"; // default pilot's name
215 // initialize port config string list
216 port_options_list.erase ( port_options_list.begin(),
217 port_options_list.end() );
221 fgOPTIONS::toggle_panel() {
223 FGTime *t = FGTime::cur_time_params;
225 int toggle_pause = t->getPause();
228 t->togglePauseMode();
231 panel_status = false;
235 if ( panel_status ) {
236 if( FGPanel::OurPanel == 0)
240 fov *= (1.0 / 0.4232);
242 fgReshape( xsize, ysize);
245 t->togglePauseMode();
249 fgOPTIONS::parse_time(const string& time_in) {
250 char *time_str, num[256];
251 double hours, minutes, seconds;
256 time_str = (char *)time_in.c_str();
258 // printf("parse_time(): %s\n", time_str);
261 if ( strlen(time_str) ) {
262 if ( time_str[0] == '+' ) {
265 } else if ( time_str[0] == '-' ) {
270 // printf("sign = %d\n", sign);
273 if ( strlen(time_str) ) {
275 while ( (time_str[0] != ':') && (time_str[0] != '\0') ) {
276 num[i] = time_str[0];
280 if ( time_str[0] == ':' ) {
285 // printf("hours = %.2lf\n", hours);
291 if ( strlen(time_str) ) {
293 while ( (time_str[0] != ':') && (time_str[0] != '\0') ) {
294 num[i] = time_str[0];
298 if ( time_str[0] == ':' ) {
303 // printf("minutes = %.2lf\n", minutes);
305 result += minutes / 60.0;
309 if ( strlen(time_str) ) {
311 while ( (time_str[0] != ':') && (time_str[0] != '\0') ) {
312 num[i] = time_str[0];
318 // printf("seconds = %.2lf\n", seconds);
320 result += seconds / 3600.0;
323 return(sign * result);
327 long int fgOPTIONS::parse_date( const string& date)
330 char * date_str, num[256];
332 // initialize to zero
339 gmt.tm_isdst = 0; // ignore daylight savings time for the moment
340 date_str = (char *)date.c_str();
342 if ( strlen(date_str) ) {
344 while ( (date_str[0] != ':') && (date_str[0] != '\0') ) {
345 num[i] = date_str[0];
349 if ( date_str[0] == ':' ) {
353 gmt.tm_year = atoi(num) - 1900;
356 if ( strlen(date_str) ) {
358 while ( (date_str[0] != ':') && (date_str[0] != '\0') ) {
359 num[i] = date_str[0];
363 if ( date_str[0] == ':' ) {
367 gmt.tm_mon = atoi(num) -1;
370 if ( strlen(date_str) ) {
372 while ( (date_str[0] != ':') && (date_str[0] != '\0') ) {
373 num[i] = date_str[0];
377 if ( date_str[0] == ':' ) {
381 gmt.tm_mday = atoi(num);
384 if ( strlen(date_str) ) {
386 while ( (date_str[0] != ':') && (date_str[0] != '\0') ) {
387 num[i] = date_str[0];
391 if ( date_str[0] == ':' ) {
395 gmt.tm_hour = atoi(num);
398 if ( strlen(date_str) ) {
400 while ( (date_str[0] != ':') && (date_str[0] != '\0') ) {
401 num[i] = date_str[0];
405 if ( date_str[0] == ':' ) {
409 gmt.tm_min = atoi(num);
412 if ( strlen(date_str) ) {
414 while ( (date_str[0] != ':') && (date_str[0] != '\0') ) {
415 num[i] = date_str[0];
419 if ( date_str[0] == ':' ) {
423 gmt.tm_sec = atoi(num);
425 time_t theTime = FGTime::cur_time_params->get_gmt(gmt.tm_year,
431 //printf ("Date is %s\n", ctime(&theTime));
432 //printf ("in seconds that is %d\n", theTime);
438 // parse degree in the form of [+/-]hhh:mm:ss
439 void fgOPTIONS::parse_control( const string& mode ) {
440 if ( mode == "joystick" ) {
441 control_mode = FG_JOYSTICK;
442 } else if ( mode == "mouse" ) {
443 control_mode = FG_MOUSE;
445 control_mode = FG_KEYBOARD;
450 /// parse degree in the form of [+/-]hhh:mm:ss
452 fgOPTIONS::parse_degree( const string& degree_str) {
453 double result = parse_time( degree_str );
455 // printf("Degree = %.4f\n", result);
461 // parse time offset command line option
463 fgOPTIONS::parse_time_offset( const string& time_str) {
466 // printf("time offset = %s\n", time_str);
469 result = (int)rint(parse_time(time_str) * 3600.0);
471 result = (int)(parse_time(time_str) * 3600.0);
474 // printf("parse_time_offset(): %d\n", result);
480 // Parse --tile-diameter=n type option
483 fgOPTIONS::parse_tile_radius( const string& arg ) {
484 int radius = atoi( arg );
486 if ( radius < FG_RADIUS_MIN ) { radius = FG_RADIUS_MIN; }
487 if ( radius > FG_RADIUS_MAX ) { radius = FG_RADIUS_MAX; }
489 // printf("parse_tile_radius(): radius = %d\n", radius);
495 // Parse --fdm=abcdefg type option
497 fgOPTIONS::parse_fdm( const string& fm ) {
498 // printf("fdm = %s\n", fm);
500 if ( fm == "slew" ) {
501 return FGInterface::FG_SLEW;
502 } else if ( fm == "jsb" ) {
503 return FGInterface::FG_JSBSIM;
504 } else if ( fm == "balloon" ) {
505 return FGInterface::FG_BALLOONSIM;
506 } else if ( (fm == "larcsim") || (fm == "LaRCsim") ) {
507 return FGInterface::FG_LARCSIM;
508 } else if ( fm == "external" ) {
509 return FGInterface::FG_EXTERNAL;
511 FG_LOG( FG_GENERAL, FG_ALERT, "Unknown fdm = " << fm );
515 // we'll never get here, but it makes the compiler happy.
520 // Parse --fov=x.xx type option
522 fgOPTIONS::parse_fov( const string& arg ) {
523 double fov = atof(arg);
525 if ( fov < FG_FOV_MIN ) { fov = FG_FOV_MIN; }
526 if ( fov > FG_FOV_MAX ) { fov = FG_FOV_MAX; }
528 // printf("parse_fov(): result = %.4f\n", fov);
534 // Parse serial port option --serial=/dev/ttyS1,nmea,4800,out
536 // Format is "--serial=device,format,baud,direction" where
538 // device = OS device name to be open()'ed
539 // format = {nmea, garmin,fgfs,rul,pve}
540 // baud = {300, 1200, 2400, ..., 230400}
541 // direction = {in, out, bi}
544 fgOPTIONS::parse_serial( const string& serial_str ) {
545 string::size_type pos;
547 // cout << "Serial string = " << serial_str << endl;
549 // a flailing attempt to see if the port config string has a
550 // chance at being valid
551 pos = serial_str.find(",");
552 if ( pos == string::npos ) {
553 FG_LOG( FG_GENERAL, FG_ALERT,
554 "Malformed serial port configure string" );
558 port_options_list.push_back( serial_str );
564 // Parse a single option
565 int fgOPTIONS::parse_option( const string& arg ) {
567 if ( (arg == "--help") || (arg == "-h") ) {
568 // help/usage request
569 return(FG_OPTIONS_HELP);
570 } else if ( arg == "--disable-game-mode") {
572 } else if ( arg == "--enable-game-mode" ) {
574 } else if ( arg == "--disable-splash-screen" ) {
575 splash_screen = false;
576 } else if ( arg == "--enable-splash-screen" ) {
577 splash_screen = true;
578 } else if ( arg == "--disable-intro-music" ) {
580 } else if ( arg == "--enable-intro-music" ) {
582 } else if ( arg == "--disable-mouse-pointer" ) {
584 } else if ( arg == "--enable-mouse-pointer" ) {
586 } else if ( arg == "--disable-pause" ) {
588 } else if ( arg == "--enable-pause" ) {
590 } else if ( arg.find( "--control=") != string::npos ) {
591 parse_control( arg.substr(10) );
592 } else if ( arg == "--disable-auto-coordination" ) {
593 auto_coordination = FG_AUTO_COORD_DISABLED;
594 } else if ( arg == "--enable-auto-coordination" ) {
595 auto_coordination = FG_AUTO_COORD_ENABLED;
596 } else if ( arg == "--disable-hud" ) {
598 } else if ( arg == "--enable-hud" ) {
600 } else if ( arg == "--disable-panel" ) {
601 panel_status = false;
602 } else if ( arg == "--enable-panel" ) {
605 } else if ( arg == "--disable-sound" ) {
607 } else if ( arg == "--enable-sound" ) {
609 } else if ( arg.find( "--airport-id=") != string::npos ) {
610 airport_id = arg.substr( 13 );
611 } else if ( arg.find( "--lon=" ) != string::npos ) {
612 lon = parse_degree( arg.substr(6) );
613 } else if ( arg.find( "--lat=" ) != string::npos ) {
614 lat = parse_degree( arg.substr(6) );
615 } else if ( arg.find( "--altitude=" ) != string::npos ) {
616 if ( units == FG_UNITS_FEET ) {
617 altitude = atof( arg.substr(11) ) * FEET_TO_METER;
619 altitude = atof( arg.substr(11) );
621 } else if ( arg.find( "--uBody=" ) != string::npos ) {
622 if ( units == FG_UNITS_FEET ) {
623 uBody = atof( arg.substr(8) ) * FEET_TO_METER;
625 uBody = atof( arg.substr(8) );
627 } else if ( arg.find( "--vBody=" ) != string::npos ) {
628 if ( units == FG_UNITS_FEET ) {
629 vBody = atof( arg.substr(8) ) * FEET_TO_METER;
631 vBody = atof( arg.substr(8) );
633 } else if ( arg.find( "--wBody=" ) != string::npos ) {
634 if ( units == FG_UNITS_FEET ) {
635 wBody = atof( arg.substr(8) ) * FEET_TO_METER;
637 wBody = atof( arg.substr(8) );
639 } else if ( arg.find( "--heading=" ) != string::npos ) {
640 heading = atof( arg.substr(10) );
641 } else if ( arg.find( "--roll=" ) != string::npos ) {
642 roll = atof( arg.substr(7) );
643 } else if ( arg.find( "--pitch=" ) != string::npos ) {
644 pitch = atof( arg.substr(8) );
645 } else if ( arg.find( "--fg-root=" ) != string::npos ) {
646 fg_root = arg.substr( 10 );
647 } else if ( arg.find( "--fdm=" ) != string::npos ) {
648 flight_model = parse_fdm( arg.substr(6) );
649 } else if ( arg.find( "--model-hz=" ) != string::npos ) {
650 model_hz = atoi( arg.substr(11) );
651 } else if ( arg.find( "--speed=" ) != string::npos ) {
652 speed_up = atoi( arg.substr(8) );
653 } else if ( arg == "--fog-disable" ) {
654 fog = FG_FOG_DISABLED;
655 } else if ( arg == "--fog-fastest" ) {
656 fog = FG_FOG_FASTEST;
657 } else if ( arg == "--fog-nicest" ) {
659 } else if ( arg.find( "--fov=" ) != string::npos ) {
660 fov = parse_fov( arg.substr(6) );
661 } else if ( arg == "--disable-fullscreen" ) {
663 } else if ( arg== "--enable-fullscreen") {
665 } else if ( arg == "--shading-flat") {
667 } else if ( arg == "--shading-smooth") {
669 } else if ( arg == "--disable-skyblend") {
671 } else if ( arg== "--enable-skyblend" ) {
673 } else if ( arg == "--disable-textures" ) {
675 } else if ( arg == "--enable-textures" ) {
677 } else if ( arg == "--disable-wireframe" ) {
679 } else if ( arg == "--enable-wireframe" ) {
681 } else if ( arg.find( "--geometry=" ) != string::npos ) {
682 bool geometry_ok = true;
683 string geometry = arg.substr( 11 );
684 string::size_type i = geometry.find('x');
686 if (i != string::npos) {
687 xsize = atoi(geometry.substr(0, i));
688 ysize = atoi(geometry.substr(i+1));
689 // cout << "Geometry is " << xsize << 'x' << ysize << '\n';
694 if ( xsize <= 0 || ysize <= 0 ) {
700 if ( !geometry_ok ) {
701 FG_LOG( FG_GENERAL, FG_ALERT, "Unknown geometry: " << geometry );
702 FG_LOG( FG_GENERAL, FG_ALERT,
703 "Setting geometry to " << xsize << 'x' << ysize << '\n');
705 } else if ( arg == "--units-feet" ) {
706 units = FG_UNITS_FEET;
707 } else if ( arg == "--units-meters" ) {
708 units = FG_UNITS_METERS;
709 } else if ( arg.find( "--tile-radius=" ) != string::npos ) {
710 tile_radius = parse_tile_radius( arg.substr(14) );
711 tile_diameter = tile_radius * 2 + 1;
712 } else if ( arg.find( "--time-offset-sys=" ) != string::npos ) {
713 time_offset = parse_time_offset( (arg.substr(18)) );
714 time_offset_type = FG_TIME_SYS_OFFSET;
715 } else if ( arg.find( "--time-offset-lat=") != string::npos ) {
716 time_offset = parse_time_offset(arg.substr(18));
717 time_offset_type = FG_TIME_LAT_OFFSET;
718 } else if ( arg.find( "--time-offset-gmt=") != string::npos ) {
719 time_offset = parse_time_offset(arg.substr(18));
720 time_offset_type = FG_TIME_GMT_OFFSET;
721 } else if ( arg.find( "--start-date-sys=") != string::npos ) {
722 time_offset = parse_date( (arg.substr(17)) );
723 time_offset_type = FG_TIME_SYS_ABSOLUTE;
724 } else if ( arg.find( "--start-date-lat=") != string::npos ) {
725 time_offset = parse_date( (arg.substr(17)) );
726 time_offset_type = FG_TIME_LAT_ABSOLUTE;
727 } else if ( arg.find( "--start-date-gmt=") != string::npos ) {
728 time_offset = parse_date( (arg.substr(17)) );
729 time_offset_type = FG_TIME_GMT_ABSOLUTE;
731 } else if ( arg == "--hud-tris" ) {
733 } else if ( arg == "--hud-culled" ) {
735 } else if ( arg.find( "--serial=" ) != string::npos ) {
736 parse_serial( arg.substr(9) );
737 #ifdef FG_NETWORK_OLK
738 } else if ( arg == "--net-hud" ) {
740 } else if ( arg.find( "--net-id=") != string::npos ) {
741 net_id = arg.substr( 9 );
744 FG_LOG( FG_GENERAL, FG_ALERT, "Unknown option '" << arg << "'" );
745 return FG_OPTIONS_ERROR;
748 return FG_OPTIONS_OK;
752 // Parse the command line options
753 int fgOPTIONS::parse_command_line( int argc, char **argv ) {
757 FG_LOG(FG_GENERAL, FG_INFO, "Processing command line arguments");
760 FG_LOG( FG_GENERAL, FG_DEBUG, "argv[" << i << "] = " << argv[i] );
762 result = parse_option(argv[i]);
763 if ( (result == FG_OPTIONS_HELP) || (result == FG_OPTIONS_ERROR) ) {
770 return(FG_OPTIONS_OK);
774 // Parse config file options
775 int fgOPTIONS::parse_config_file( const string& path ) {
776 fg_gzifstream in( path );
778 return(FG_OPTIONS_ERROR);
780 FG_LOG( FG_GENERAL, FG_INFO, "Processing config file: " << path );
784 while ( ! in.eof() ) {
787 while ( in.get(c) && c != '\0' ) {
792 #ifdef GETLINE_NEEDS_TERMINATOR
793 getline( in, line, '\n' );
798 if ( parse_option( line ) == FG_OPTIONS_ERROR ) {
799 FG_LOG( FG_GENERAL, FG_ALERT,
800 "Config file parse error: " << path << " '"
807 return FG_OPTIONS_OK;
811 // Print usage message
812 void fgOPTIONS::usage ( void ) {
813 cout << "Usage: fg [ options ... ]" << endl;
816 cout << "General Options:" << endl;
817 cout << "\t--help -h: print usage" << endl;
818 cout << "\t--fg-root=path: specify the root path for all the data files"
820 cout << "\t--disable-game-mode: disable full-screen game mode" << endl;
821 cout << "\t--enable-game-mode: enable full-screen game mode" << endl;
822 cout << "\t--disable-splash-screen: disable splash screen" << endl;
823 cout << "\t--enable-splash-screen: enable splash screen" << endl;
824 cout << "\t--disable-intro-music: disable introduction music" << endl;
825 cout << "\t--enable-intro-music: enable introduction music" << endl;
826 cout << "\t--disable-mouse-pointer: disable extra mouse pointer" << endl;
827 cout << "\t--enable-mouse-pointer: enable extra mouse pointer (i.e. for"
829 cout << "\t\tfull screen voodoo/voodoo-II based cards.)" << endl;
830 cout << "\t--disable-pause: start out in an active state" << endl;
831 cout << "\t--enable-pause: start out in a paused state" << endl;
832 cout << "\t--control=mode: primary control mode "
833 << "(joystick, keyboard, mouse)" << endl;
836 cout << "Features:" << endl;
837 cout << "\t--disable-hud: disable heads up display" << endl;
838 cout << "\t--enable-hud: enable heads up display" << endl;
839 cout << "\t--disable-panel: disable instrument panel" << endl;
840 cout << "\t--enable-panel: enable instrumetn panel" << endl;
841 cout << "\t--disable-sound: disable sound effects" << endl;
842 cout << "\t--enable-sound: enable sound effects" << endl;
845 cout << "Flight Model:" << endl;
846 cout << "\t--fdm=abcd: one of slew, jsb, larcsim, or external" << endl;
847 cout << "\t--model-hz=n: run the FDM this rate (iterations per second)"
849 cout << "\t--speed=n: run the FDM this much faster than real time" << endl;
852 cout << "Initial Position and Orientation:" << endl;
853 cout << "\t--airport-id=ABCD: specify starting postion by airport id"
855 cout << "\t--lon=degrees: starting longitude in degrees (west = -)"
857 cout << "\t--lat=degrees: starting latitude in degrees (south = -)"
859 cout << "\t--altitude=feet: starting altitude in feet" << endl;
860 cout << "\t\t(unless --units-meters specified" << endl;
861 cout << "\t--heading=degrees: heading (yaw) angle in degress (Psi)"
863 cout << "\t--roll=degrees: roll angle in degrees (Phi)" << endl;
864 cout << "\t--pitch=degrees: pitch angle in degrees (Theta)" << endl;
865 cout << "\t--uBody=feet per second: velocity along the body X axis"
867 cout << "\t--vBody=feet per second: velocity along the body Y axis"
869 cout << "\t--wBody=feet per second: velocity along the body Z axis"
871 cout << "\t\t(unless --units-meters specified" << endl;
874 cout << "Rendering Options:" << endl;
875 cout << "\t--fog-disable: disable fog/haze" << endl;
876 cout << "\t--fog-fastest: enable fastest fog/haze" << endl;
877 cout << "\t--fog-nicest: enable nicest fog/haze" << endl;
878 cout << "\t--fov=xx.x: specify initial field of view angle in degrees"
880 cout << "\t--disable-fullscreen: disable fullscreen mode" << endl;
881 cout << "\t--enable-fullscreen: enable fullscreen mode" << endl;
882 cout << "\t--shading-flat: enable flat shading" << endl;
883 cout << "\t--shading-smooth: enable smooth shading" << endl;
884 cout << "\t--disable-skyblend: disable sky blending" << endl;
885 cout << "\t--enable-skyblend: enable sky blending" << endl;
886 cout << "\t--disable-textures: disable textures" << endl;
887 cout << "\t--enable-textures: enable textures" << endl;
888 cout << "\t--disable-wireframe: disable wireframe drawing mode" << endl;
889 cout << "\t--enable-wireframe: enable wireframe drawing mode" << endl;
890 cout << "\t--geometry=WWWxHHH: window geometry: 640x480, 800x600, etc."
894 cout << "Scenery Options:" << endl;
895 cout << "\t--tile-radius=n: specify tile radius, must be 1 - 4" << endl;
898 cout << "Hud Options:" << endl;
899 cout << "\t--units-feet: Hud displays units in feet" << endl;
900 cout << "\t--units-meters: Hud displays units in meters" << endl;
901 cout << "\t--hud-tris: Hud displays number of triangles rendered" << endl;
902 cout << "\t--hud-culled: Hud displays percentage of triangles culled"
906 cout << "Time Options:" << endl;
907 cout << "\t--time-offset-sys=[+-]hh:mm:ss: add this time offset to" << endl
908 << "\t\tyour system time" << endl;
909 cout << "\t--time-offset-gmt:[+-]hh:mm:ss: add this time offset to" << endl
910 << "\t\tGreenwich Mean Time (GMT)" << endl;
911 cout << "\t--time-offset-lat:[+-]hh:mm:ss: add this time offset to" << endl
912 << "\t\tLocal Aircraft Time (LAT)" << endl;
913 cout << "\t--start-date-sys=yyyy:mm:dd:hh:mm:ss: specify a starting" << endl
914 << "\t\tdate/time. Uses your system time " << endl;
915 cout << "\t--start-date-gmt=yyyy:mm:dd:hh:mm:ss: specify a starting" << endl
916 << "\t\tdate/time. Uses Greenwich Mean Time" << endl;
917 cout << "\t--start-date-lat=yyyy:mm:dd:hh:mm:ss: specify a starting" << endl
918 << "\t\tdate/time. Uses Local Aircraft Time" << endl;
919 #ifdef FG_NETWORK_OLK
922 cout << "Network Options:" << endl;
923 cout << "\t--net-hud: Hud displays network info" << endl;
924 cout << "\t--net-id=name: specify your own callsign" << endl;
930 fgOPTIONS::~fgOPTIONS( void ) {