Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
added --version flag to doxyparse
Browse files Browse the repository at this point in the history
doxyparse follows the same doxygen version number
  • Loading branch information
joenio committed Dec 28, 2017
1 parent 2df61e1 commit 45bdf67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon/doxyparse/doxyparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <stdlib.h>
#include <unistd.h>
#include "version.h"
#include "doxygen.h"
#include "outputgen.h"
#include "parserintf.h"
Expand Down Expand Up @@ -376,6 +377,10 @@ int main(int argc,char **argv) {
printf("Usage: %s [source_file | source_dir]\n",argv[0]);
exit(1);
}
if (qstrcmp(&argv[1][2], "version") == 0) {
printf("%s\n", versionString);
exit(0);
}

// initialize data structures
initDoxygen();
Expand Down

0 comments on commit 45bdf67

Please sign in to comment.