diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp index f849a8b18788c4116ae815c57400397b2a3d8857..12ebbcba3d899fe5f50ead2b474e1bf13f2b2f09 100644 --- a/Common/CommandLine.cpp +++ b/Common/CommandLine.cpp @@ -88,9 +88,8 @@ void PrintUsage(const char *name) Msg::Direct(" -link int Select link mode between views (0, 1, 2, 3, 4)"); Msg::Direct(" -combine Combine views having identical names into multi-time-step views"); Msg::Direct("Display options:"); + Msg::Direct(" -n Hide all meshes and post-processing views on startup"); Msg::Direct(" -nodb Disable double buffering"); - Msg::Direct(" -noview Hide all views on startup"); - Msg::Direct(" -nomesh Hide all meshes on startup"); Msg::Direct(" -fontsize int Specify the font size for the GUI"); Msg::Direct(" -theme string Specify FLTK GUI theme"); Msg::Direct(" -display string Specify display"); @@ -590,6 +589,16 @@ void GetOptions(int argc, char *argv[]) opt_mesh_volumes_faces(0, GMSH_SET, 0.); i++; } + else if(!strcmp(argv[i] + 1, "n")) { + opt_view_visible(0, GMSH_SET, 0); + opt_mesh_points(0, GMSH_SET, 0.); + opt_mesh_lines(0, GMSH_SET, 0.); + opt_mesh_surfaces_edges(0, GMSH_SET, 0.); + opt_mesh_surfaces_faces(0, GMSH_SET, 0.); + opt_mesh_volumes_edges(0, GMSH_SET, 0.); + opt_mesh_volumes_faces(0, GMSH_SET, 0.); + i++; + } else if(!strcmp(argv[i] + 1, "link")) { i++; if(argv[i]) diff --git a/doc/texinfo/gmsh.texi b/doc/texinfo/gmsh.texi index 00698341af61c76526e7b2b702f076ca0d54919e..749c7173529e16b9470a9229a057c04939165f85 100644 --- a/doc/texinfo/gmsh.texi +++ b/doc/texinfo/gmsh.texi @@ -899,12 +899,10 @@ Combine views having identical names into multi-time-step views @noindent Display options: @ftable @code +@item -n +Hide all meshes and post-processing views on startup @item -nodb Disable double buffering -@item -noview -Hide all views on startup -@item -nomesh -Hide all meshes on startup @item -fontsize int Specify the font size for the GUI @item -theme string