diff --git a/ground/openpilotgcs/src/app/main.cpp b/ground/openpilotgcs/src/app/main.cpp index f276f60a2..88eacd532 100644 --- a/ground/openpilotgcs/src/app/main.cpp +++ b/ground/openpilotgcs/src/app/main.cpp @@ -60,7 +60,7 @@ static const char *fixedOptionsC = " -clean-config Delete all existing configuration settings\n" " -exit-after-config Exit GCS after manipulating configuration settings\n" " -D key=value Override configuration settings e.g: -D General/OverrideLanguage=de\n" -" -config=value Default configuration file to load if settings file is empty\n"; +" -configfile=value Default configuration file to load if settings file is empty\n"; static const char *HELP_OPTION1 = "-h"; static const char *HELP_OPTION2 = "-help"; static const char *HELP_OPTION3 = "/h"; diff --git a/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp b/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp index bc7d79dab..647b861da 100644 --- a/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp +++ b/ground/openpilotgcs/src/plugins/coreplugin/mainwindow.cpp @@ -273,7 +273,7 @@ void MainWindow::extensionsInitialized() if ( ! qs->allKeys().count() ){ foreach(QString str,qApp->arguments()) { - if(str.contains("config")) + if(str.contains("configfile")) { qDebug()<<"ass"; commandLine=str.split("=").at(1);