summaryrefslogtreecommitdiffstats
path: root/addon/doxyparse/doxyparse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'addon/doxyparse/doxyparse.cpp')
-rw-r--r--addon/doxyparse/doxyparse.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/addon/doxyparse/doxyparse.cpp b/addon/doxyparse/doxyparse.cpp
index b5fbcb3..df9069b 100644
--- a/addon/doxyparse/doxyparse.cpp
+++ b/addon/doxyparse/doxyparse.cpp
@@ -426,15 +426,27 @@ static void listSymbols() {
}
int main(int argc,char **argv) {
- 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);
}
- if (qstrcmp(&argv[1][2], "version") == 0) {
- QCString versionString = getDoxygenVersion();
- printf("%s\n", versionString.data());
- exit(0);
- }
// initialize data structures
initDoxygen();