Merge pull request #543 from oleg-alexandrov/exitAfterPrintHelp

Exit after printing the help message
This commit is contained in:
Alessandro Muntoni 2020-01-13 17:21:54 +01:00 committed by GitHub
commit 2a2d7c6e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 <meshfile>\n"
"Look at http://www.meshlab.net\n"
"for a longer documentation\n"
);
return 0;
}
for (int i = 1; i < argc; ++i)
{