Command line options: Difference between revisions

Jump to navigation Jump to search
m
Robot: Cosmetic changes
m (→‎General Options: correct enable/disable fullscreen mode)
m (Robot: Cosmetic changes)
Line 1: Line 1:
'''Command line options''' are a common way to tell applications what to do/how to act on startup. With [[FlightGear]] they are used for many things, from simple ones like selecting an aircraft up to complex stuff like network traffic and weather parameters.
'''Command line options''' are a common way to tell applications what to do/how to act on startup. With [[FlightGear]] they are used for many things, from simple ones like selecting an aircraft up to complex stuff like network traffic and weather parameters.


The easiest way to handle those options for FlightGear (''fgfs'') is using a tool with a graphical user interface like ''[[fgrun]]'' on Windows and GNU/Linux or the Mac OS X GUI-Launcher. This way one don't have to bother 'bout them at all.<BR>
The easiest way to handle those options for FlightGear (''fgfs'') is using a tool with a graphical user interface like ''[[fgrun]]'' on Windows and GNU/Linux or the Mac OS X GUI-Launcher. This way one don't have to bother 'bout them at all.<br />
However, there are users who don't want or are not able to run a GUI and therefore are interested in this. Those who need them or just want to learn more about GlightGear, but have no idea what we are talking about, may read the wiki page on the general usage of the [[command line]].
However, there are users who don't want or are not able to run a GUI and therefore are interested in this. Those who need them or just want to learn more about GlightGear, but have no idea what we are talking about, may read the wiki page on the general usage of the [[command line]].


A good place to store the personal options is a file called [[fgfsrc]]. This file is read by ''fgfs'' on each startup.
A good place to store the personal options is a file called [[fgfsrc]]. This file is read by ''fgfs'' on each startup.


The following lists show the options for ''fgfs'' including a short description and sorted by categories. Please have in mind that keeping those lists up to date on the wiki is not an easy task. Also there are different versions of FlightGear out there which don't share exactly the same options. Therefore you better also check your versions ones with <code>fgfs --help --verbose</code>. If this command fails, you may add the option <code>--fg-root=[path]</code> as well, see below.<BR>
The following lists show the options for ''fgfs'' including a short description and sorted by categories. Please have in mind that keeping those lists up to date on the wiki is not an easy task. Also there are different versions of FlightGear out there which don't share exactly the same options. Therefore you better also check your versions ones with <code>fgfs --help --verbose</code>. If this command fails, you may add the option <code>--fg-root=[path]</code> as well, see below.<br />
It is sad but true, not even this command is, at least in Git, up to date all the time. At the time of writing at least one option which is supported is not shown with <code>fgfs --help --verbose</code>. So if you have serious issues with an option, the source code is, as always, also the best source for info. In the file ''src/Main/options.cxx'' all the options are listed with their hard coded ''default'' setting and type.<BR>
It is sad but true, not even this command is, at least in Git, up to date all the time. At the time of writing at least one option which is supported is not shown with <code>fgfs --help --verbose</code>. So if you have serious issues with an option, the source code is, as always, also the best source for info. In the file ''src/Main/options.cxx'' all the options are listed with their hard coded ''default'' setting and type.<br />
The file $FG_ROOT/options.xml is used to generate the output for <code>fgfs --help [--verbose]</code>. That's the reason why <code>--fg-root=[path]</code> has to be added to this, if it is not set as environmental variable or as option in fgfsrc.
The file $FG_ROOT/options.xml is used to generate the output for <code>fgfs --help [--verbose]</code>. That's the reason why <code>--fg-root=[path]</code> has to be added to this, if it is not set as environmental variable or as option in fgfsrc.


Line 102: Line 102:




==== Aircraft model directory (UIUC FDM ONLY) ====  
==== Aircraft model directory (UIUC FDM ONLY) ====


   --aircraft-dir=path          Aircraft directory relative to the path of the
   --aircraft-dir=path          Aircraft directory relative to the path of the
Line 232: Line 232:




==== IO Options ====  
==== IO Options ====


   --generic=params            Open connection using a predefined
   --generic=params            Open connection using a predefined
Line 316: Line 316:


[[FlightGear 1.0 aircraft names for command line]] can be useful depending on what version and aircraft are installed.
[[FlightGear 1.0 aircraft names for command line]] can be useful depending on what version and aircraft are installed.
[[de:Command Line Options]]


[[Category:List]]
[[Category:List]]
[[de:Command Line Options]]

Navigation menu