diff options
author | albert-github <albert.tests@gmail.com> | 2013-08-17 12:18:23 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2013-08-17 12:18:23 (GMT) |
commit | 691a654b331a1036c8a5bbf4d06e4d8fcb4d799c (patch) | |
tree | 7435dbeed36841eadac0f5faec31f13653cf2503 /src/doxygen.cpp | |
parent | 8b096f20fa8c16ac476412bf5e4022c051d0261f (diff) | |
download | Doxygen-691a654b331a1036c8a5bbf4d06e4d8fcb4d799c.zip Doxygen-691a654b331a1036c8a5bbf4d06e4d8fcb4d799c.tar.gz Doxygen-691a654b331a1036c8a5bbf4d06e4d8fcb4d799c.tar.bz2 |
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
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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); |