From 8e7e265d89dbcb5f8e8555c10d5550c4d0d426ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 21 Dec 2010 08:51:45 +0000 Subject: [PATCH] Dont crash on wrong command line options git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@354 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Apps/Dualizer/dualizer.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OpenMesh/Apps/Dualizer/dualizer.cc b/src/OpenMesh/Apps/Dualizer/dualizer.cc index 1de80120..1009ad2c 100644 --- a/src/OpenMesh/Apps/Dualizer/dualizer.cc +++ b/src/OpenMesh/Apps/Dualizer/dualizer.cc @@ -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]) ) {