24int main(
int argc,
char* argv[])
27 "Converts OGS geometry file into another file format. "
28 "Currently *.gml (OGS6 XML-based format) and *.gli (OGS5 format) "
29 "formats are supported.\n\n"
30 "OpenGeoSys-6 software, version " +
33 "Copyright (c) 2012-2025, OpenGeoSys Community "
34 "(http://www.opengeosys.org)",
36 TCLAP::ValueArg<std::string> argInputFileName(
38 "Input (.gml|.gli). The name of the geometry file to be converted",
39 true,
"",
"INPUT_FILE");
40 cmd.add(argInputFileName);
41 TCLAP::ValueArg<std::string> argOutputFileName(
43 "Output. The name of the new geometry file whose file format is "
46 true,
"",
"OUTPUT_FILE");
47 cmd.add(argOutputFileName);
49 TCLAP::ValueArg<std::string> gmsh_path_arg(
50 "g",
"gmsh-path",
"Input (.msh). The path to the gmsh binary file",
51 false,
"",
"INPUT_FILE");
52 cmd.add(gmsh_path_arg);
54 cmd.add(log_level_arg);
55 cmd.parse(argc, argv);
62 gmsh_path_arg.getValue());
64 assert(geo_names.size() == 1);
67 argOutputFileName.getValue());