Commit 8e7e265d authored by Jan Möbius's avatar Jan Möbius

Dont crash on wrong command line options

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@354 fdac6126-5c0c-442c-9429-916003d36597
parent 465fad1a
......@@ -53,6 +53,11 @@ int main(int argc, char **argv)
{
MyMesh mesh;
if ( argc != 2 ) {
std::cerr << "Please specify input filename only!" << std::endl;
return 1;
}
// read mesh from argv[1]
if ( !OpenMesh::IO::read_mesh(mesh, argv[1]) )
{
......
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