From 9a1c920455c585ee9c7596147ff954cf900e9f21 Mon Sep 17 00:00:00 2001 From: Oleg Alexandrov Date: Fri, 27 Dec 2019 09:57:30 -0800 Subject: [PATCH] Exit after printing the help message --- src/meshlab/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/meshlab/main.cpp b/src/meshlab/main.cpp index c9976d21e..ef692e6e8 100644 --- a/src/meshlab/main.cpp +++ b/src/meshlab/main.cpp @@ -59,12 +59,15 @@ int main(int argc, char *argv[]) QString helpOpt1="-h"; QString helpOpt2="--help"; if( (helpOpt1==argv[1]) || (helpOpt2==argv[1]) ) + { printf( "usage:\n" "meshlab \n" "Look at http://www.meshlab.net\n" "for a longer documentation\n" ); + return 0; + } for (int i = 1; i < argc; ++i) {