Skip to content
Snippets Groups Projects
Commit df4b83ec authored by Éric Béchet's avatar Éric Béchet
Browse files

- allows to choose msh version from command line...

parent f7468769
Branches
Tags
No related merge requests found
...@@ -115,6 +115,7 @@ void PrintUsage(const char *name) ...@@ -115,6 +115,7 @@ void PrintUsage(const char *name)
Msg::Direct(" -string \"string\" Parse option string at startup"); Msg::Direct(" -string \"string\" Parse option string at startup");
Msg::Direct(" -option file Parse option file at startup"); Msg::Direct(" -option file Parse option file at startup");
Msg::Direct(" -convert files Convert files into latest binary formats, then exit"); Msg::Direct(" -convert files Convert files into latest binary formats, then exit");
Msg::Direct(" -vmsh float Select msh file version");
Msg::Direct(" -version Show version number"); Msg::Direct(" -version Show version number");
Msg::Direct(" -info Show detailed version information"); Msg::Direct(" -info Show detailed version information");
Msg::Direct(" -help Show this message"); Msg::Direct(" -help Show this message");
...@@ -412,6 +413,14 @@ void GetOptions(int argc, char *argv[]) ...@@ -412,6 +413,14 @@ void GetOptions(int argc, char *argv[])
else else
Msg::Fatal("Missing number"); Msg::Fatal("Missing number");
} }
else if(!strcmp(argv[i] + 1, "vmsh")) {
i++;
if(argv[i]){
CTX::instance()->mesh.mshFileVersion = atof(argv[i++]);
}
else
Msg::Fatal("Missing number");
}
else if(!strcmp(argv[i] + 1, "convert")) { else if(!strcmp(argv[i] + 1, "convert")) {
i++; i++;
CTX::instance()->batch = 1; CTX::instance()->batch = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment