summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-07-23 19:14:14 (GMT)
committerGitHub <noreply@github.com>2018-07-23 19:14:14 (GMT)
commit44fa7c6177ce76ed3b5e9277af4cbe3256c00371 (patch)
tree28f6e944397a1ee5f8167a883fb27408611ec126 /src/doxygen.cpp
parent8032111d5e1baf0d4c017be6f6eea2aaa10ad26b (diff)
parentc17bfe7f9ee46c9cf41bbf16ef72607793c80036 (diff)
downloadDoxygen-44fa7c6177ce76ed3b5e9277af4cbe3256c00371.zip
Doxygen-44fa7c6177ce76ed3b5e9277af4cbe3256c00371.tar.gz
Doxygen-44fa7c6177ce76ed3b5e9277af4cbe3256c00371.tar.bz2
Merge pull request #6403 from albert-github/feature/bug_doxyfile_options
Consistency between 'generate' and 'update' startup option
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp45
1 files changed, 19 insertions, 26 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 7353516..78a73b8 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -10218,11 +10218,6 @@ void readConfiguration(int argc, char **argv)
{
case 'g':
genConfig=TRUE;
- configName=getArg(argc,argv,optind);
- if (optind+1<argc && qstrcmp(argv[optind+1],"-")==0)
- { configName="-"; optind++; }
- if (!configName)
- { configName="Doxyfile"; }
break;
case 'l':
genLayout=TRUE;
@@ -10461,26 +10456,6 @@ void readConfiguration(int argc, char **argv)
Config::init();
- if (genConfig && g_useOutputTemplate)
- {
- generateTemplateFiles("templates");
- cleanUpDoxygen();
- exit(0);
- }
-
- if (genConfig)
- {
- generateConfigFile(configName,shortList);
- cleanUpDoxygen();
- exit(0);
- }
- if (genLayout)
- {
- writeDefaultLayoutFile(layoutName);
- cleanUpDoxygen();
- exit(0);
- }
-
QFileInfo configFileInfo1("Doxyfile"),configFileInfo2("doxyfile");
if (optind>=argc)
{
@@ -10502,7 +10477,7 @@ void readConfiguration(int argc, char **argv)
else
{
QFileInfo fi(argv[optind]);
- if (fi.exists() || qstrcmp(argv[optind],"-")==0)
+ if (fi.exists() || qstrcmp(argv[optind],"-")==0 || genConfig)
{
configName=argv[optind];
}
@@ -10513,7 +10488,25 @@ void readConfiguration(int argc, char **argv)
exit(1);
}
}
+ if (genConfig && g_useOutputTemplate)
+ {
+ generateTemplateFiles("templates");
+ cleanUpDoxygen();
+ exit(0);
+ }
+ if (genConfig)
+ {
+ generateConfigFile(configName,shortList);
+ cleanUpDoxygen();
+ exit(0);
+ }
+ if (genLayout)
+ {
+ writeDefaultLayoutFile(layoutName);
+ cleanUpDoxygen();
+ exit(0);
+ }
if (!Config::parse(configName,updateConfig))
{