diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-21 14:00:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 14:00:28 (GMT) |
commit | 7af8870a020ad2f85dccd041c04b83d6310337f1 (patch) | |
tree | 47701abdb00a4b3a8b7717364db009be3e2ac9bd /addon/doxyapp | |
parent | 0b220e70216bd68900019ecf175986d503922624 (diff) | |
parent | b320b14cdfee48a90a732304d6398eb388b1c975 (diff) | |
download | Doxygen-7af8870a020ad2f85dccd041c04b83d6310337f1.zip Doxygen-7af8870a020ad2f85dccd041c04b83d6310337f1.tar.gz Doxygen-7af8870a020ad2f85dccd041c04b83d6310337f1.tar.bz2 |
Merge pull request #8263 from albert-github/feature/bug_addon_version
Usage of version and help in addons
Diffstat (limited to 'addon/doxyapp')
-rw-r--r-- | addon/doxyapp/doxyapp.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/addon/doxyapp/doxyapp.cpp b/addon/doxyapp/doxyapp.cpp index 2a788b2..c034bab 100644 --- a/addon/doxyapp/doxyapp.cpp +++ b/addon/doxyapp/doxyapp.cpp @@ -38,6 +38,7 @@ #include "classlist.h" #include "config.h" #include "filename.h" +#include "version.h" class XRefDummyCodeGenerator : public CodeOutputInterface { @@ -225,7 +226,23 @@ int main(int argc,char **argv) { char cmd[256]; - if (argc<2) + int locArgc = argc; + + if (locArgc == 2) + { + if (!strcmp(argv[1],"--help")) + { + printf("Usage: %s [source_file | source_dir]\n",argv[0]); + exit(0); + } + else if (!strcmp(argv[1],"--version")) + { + printf("%s version: %s\n",argv[0],getFullVersion()); + exit(0); + } + } + + if (locArgc!=2) { printf("Usage: %s [source_file | source_dir]\n",argv[0]); exit(1); |