From 6d59324e04641955edfc2ba2001bd597afc5163a Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 23 Sep 2020 10:32:33 +0200 Subject: #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) --- src/doxygen.cpp | 4 ++-- 1 file 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); } -- cgit v0.12