Skip to content
Snippets Groups Projects
Commit 9b60c502 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

GetCommandLine clashes with windows internals

parent 8d250b1b
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ int GmshFinalize()
int GmshBatch()
{
Msg::Info("Running '%s'", Msg::GetCommandLine().c_str());
Msg::Info("Running '%s'", Msg::GetCommandLineArgs().c_str());
Msg::Info("Started on %s", Msg::GetLaunchDate().c_str());
OpenProject(GModel::current()->getFileName());
......
......@@ -52,7 +52,7 @@ class Msg {
static void SetVerbosity(int val){ _verbosity = val; }
static int GetVerbosity(){ return _verbosity; }
static std::string GetLaunchDate(){ return _launchDate; }
static std::string GetCommandLine(){ return _commandLine; }
static std::string GetCommandLineArgs(){ return _commandLine; }
static void Fatal(const char *fmt, ...);
static void Error(const char *fmt, ...);
static void Warning(const char *fmt, ...);
......
......@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
Msg::Info("Packager : %s", GetGmshPackager());
Msg::Info("Home directory : %s", CTX::instance()->homeDir.c_str());
Msg::Info("Launch date : %s", Msg::GetLaunchDate().c_str());
Msg::Info("Command line : %s", Msg::GetCommandLine().c_str());
Msg::Info("Command line : %s", Msg::GetCommandLineArgs().c_str());
Msg::Info("-------------------------------------------------------");
// Display the GUI immediately to have a quick "a la Windows" launch time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment