]> git.mxchange.org Git - flightgear.git/commitdiff
Print the usage message as well if a base package version mismatch is
authorcurt <curt>
Mon, 4 Feb 2002 22:06:37 +0000 (22:06 +0000)
committercurt <curt>
Mon, 4 Feb 2002 22:06:37 +0000 (22:06 +0000)
detected.

src/Main/main.cxx

index fd8ff498227b18c9db43f9d0c5bf9146d00110b6..62ffdf05fb01d9ec4e389062484bf35c7ab1e10b 100644 (file)
@@ -150,6 +150,7 @@ sgVec3 rway_ols;
 #include "globals.hxx"
 #include "splash.hxx"
 #include "viewmgr.hxx"
+#include "options.hxx"
 
 #ifdef macintosh
 #  include <console.h>         // -dw- for command line dialog
@@ -1474,6 +1475,9 @@ int mainLoop( int argc, char **argv ) {
     // Check for the correct base package version
     string base_version = fgBasePackageVersion();
     if ( !(base_version == "0.7.9") ) {
+        // tell the operator how to use this application
+        fgUsage();
+
        SG_LOG( SG_GENERAL, SG_ALERT, "Base package check failed ... "
                << "Found version " << base_version );
         SG_LOG( SG_GENERAL, SG_ALERT, "Please upgrade to version 0.7.9" );