summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-09-23 08:32:33 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-09-23 08:32:33 (GMT)
commit6d59324e04641955edfc2ba2001bd597afc5163a (patch)
tree7fc2e421b74fd5be03d6d71628e3f6a99d197eec /src
parent55e15c86717f38c9b510e4287cb0b4f165b8cb10 (diff)
downloadDoxygen-6d59324e04641955edfc2ba2001bd597afc5163a.zip
Doxygen-6d59324e04641955edfc2ba2001bd597afc5163a.tar.gz
Doxygen-6d59324e04641955edfc2ba2001bd597afc5163a.tar.bz2
#8051 Consider documenting debug options of doxygen
- don't create an error in case of no argument, just handle it as a request for help. - give the usage also in case of an error (besides the error message)
Diffstat (limited to 'src')
-rw-r--r--src/doxygen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index ee414e7..7ec3be1 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -10047,15 +10047,15 @@ void readConfiguration(int argc, char **argv)
debugLabel=getArg(argc,argv,optind);
if (!debugLabel)
{
- err("option \"-d\" is missing debug specifier.\n");
devUsage();
cleanUpDoxygen();
- exit(1);
+ exit(0);
}
retVal = Debug::setFlag(debugLabel);
if (!retVal)
{
err("option \"-d\" has unknown debug specifier: \"%s\".\n",debugLabel);
+ devUsage();
cleanUpDoxygen();
exit(1);
}