summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doxygen.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 68b49c2..4cc3ca9 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -10207,7 +10207,6 @@ void readConfiguration(int argc, char **argv)
bool genConfig=FALSE;
bool shortList=FALSE;
bool updateConfig=FALSE;
- bool genLayout=FALSE;
int retVal;
while (optind<argc && argv[optind][0]=='-' &&
(isalpha(argv[optind][1]) || argv[optind][1]=='?' ||
@@ -10220,10 +10219,12 @@ void readConfiguration(int argc, char **argv)
genConfig=TRUE;
break;
case 'l':
- genLayout=TRUE;
layoutName=getArg(argc,argv,optind);
if (!layoutName)
{ layoutName="DoxygenLayout.xml"; }
+ writeDefaultLayoutFile(layoutName);
+ cleanUpDoxygen();
+ exit(0);
break;
case 'd':
debugLabel=getArg(argc,argv,optind);
@@ -10505,12 +10506,6 @@ void readConfiguration(int argc, char **argv)
cleanUpDoxygen();
exit(0);
}
- if (genLayout)
- {
- writeDefaultLayoutFile(layoutName);
- cleanUpDoxygen();
- exit(0);
- }
if (!Config::parse(configName,updateConfig))
{