22int main(
int argc,
char* argv[])
25 "Converts OGS geometry file into another file format. "
26 "Currently *.gml (OGS6 XML-based format) and *.gli (OGS5 format) "
27 "formats are supported.\n\n"
28 "OpenGeoSys-6 software, version " +
31 "Copyright (c) 2012-2024, OpenGeoSys Community "
32 "(http://www.opengeosys.org)",
34 TCLAP::ValueArg<std::string> argInputFileName(
35 "i",
"input-file",
"the name of the geometry file to be converted",
36 true,
"",
"file name");
37 cmd.add(argInputFileName);
38 TCLAP::ValueArg<std::string> argOutputFileName(
40 "the name of the new geometry file whose file format is guessed from "
42 true,
"",
"file name");
43 cmd.add(argOutputFileName);
45 TCLAP::ValueArg<std::string> gmsh_path_arg(
"g",
"gmsh-path",
46 "the path to the gmsh binary",
47 false,
"",
"path as string");
48 cmd.add(gmsh_path_arg);
49 cmd.parse(argc, argv);
55 gmsh_path_arg.getValue());
57 assert(geo_names.size() == 1);
60 argOutputFileName.getValue());