Commit c59ff154 authored by Christof Metzger-Kraus's avatar Christof Metzger-Kraus
Browse files

print help message when no arguments given

parent d7bb3d15
......@@ -845,7 +845,8 @@ void MeshGenerator::write(const std::string &fname) {
out << "args = parser.parse_args()\n\n";
out << "if (args.export_vtk):\n";
out << indent << "exportVTK()\n\n";
out << indent << "exportVTK()\n";
out << indent << "sys.exit()\n\n";
out << "if (args.export_web):\n";
out << indent << "bgcolor = []\n";
......@@ -857,14 +858,17 @@ void MeshGenerator::write(const std::string &fname) {
out << indent << indent << indent << indent << "break\n";
out << indent << indent << "if (validBackground):\n";
out << indent << indent << indent << "bgcolor = args.background\n";
out << indent << "exportWeb(bgcolor)\n\n";
out << indent << "exportWeb(bgcolor)\n";
out << indent << "sys.exit()\n\n";
out << "if (args.project_to_plane):\n";
out << indent << "normal = [0.0, 1.0, 0.0]\n";
out << indent << "if (args.normal):\n";
out << indent << indent << "normal = args.normal\n";
out << indent << "projectToPlane(normal)";
out << indent << "projectToPlane(normal)\n";
out << indent << "sys.exit()\n\n";
out << "parser.print_help()\n";
}
MeshData MeshGenerator::getCylinder(double length,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment