Commit 691a654b authored by albert-github's avatar albert-github

Added -v option (analogous to --version).

In case option started with -- and is not a known valuue (help or version) and error is given instead of starting Doxygen
parent 8b096f20
...@@ -10171,6 +10171,11 @@ void readConfiguration(int argc, char **argv) ...@@ -10171,6 +10171,11 @@ void readConfiguration(int argc, char **argv)
case 'm': case 'm':
g_dumpSymbolMap = TRUE; g_dumpSymbolMap = TRUE;
break; break;
case 'v':
msg("%s\n",versionString);
cleanUpDoxygen();
exit(0);
break;
case '-': case '-':
if (qstrcmp(&argv[optind][2],"help")==0) if (qstrcmp(&argv[optind][2],"help")==0)
{ {
...@@ -10182,6 +10187,11 @@ void readConfiguration(int argc, char **argv) ...@@ -10182,6 +10187,11 @@ void readConfiguration(int argc, char **argv)
cleanUpDoxygen(); cleanUpDoxygen();
exit(0); exit(0);
} }
else
{
err("Unknown option -%s\n",&argv[optind][1]);
usage(argv[0]);
}
break; break;
case 'b': case 'b':
setvbuf(stdout,NULL,_IONBF,0); setvbuf(stdout,NULL,_IONBF,0);
......
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