From 691a654b331a1036c8a5bbf4d06e4d8fcb4d799c Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 17 Aug 2013 14:18:23 +0200 Subject: 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 --- src/doxygen.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/doxygen.cpp b/src/doxygen.cpp index c78ce6b..9ea2193 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -10171,6 +10171,11 @@ void readConfiguration(int argc, char **argv) case 'm': g_dumpSymbolMap = TRUE; break; + case 'v': + msg("%s\n",versionString); + cleanUpDoxygen(); + exit(0); + break; case '-': if (qstrcmp(&argv[optind][2],"help")==0) { @@ -10182,6 +10187,11 @@ void readConfiguration(int argc, char **argv) cleanUpDoxygen(); exit(0); } + else + { + err("Unknown option -%s\n",&argv[optind][1]); + usage(argv[0]); + } break; case 'b': setvbuf(stdout,NULL,_IONBF,0); -- cgit v0.12