summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-07-21 11:26:44 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-07-21 11:26:44 (GMT)
commitc17bfe7f9ee46c9cf41bbf16ef72607793c80036 (patch)
tree1238215fc45fbf19336fa471092fe17986c5670b /src/doxygen.cpp
parent749afec191b8504a661dc2f2c730301777dc1712 (diff)
downloadDoxygen-c17bfe7f9ee46c9cf41bbf16ef72607793c80036.zip
Doxygen-c17bfe7f9ee46c9cf41bbf16ef72607793c80036.tar.gz
Doxygen-c17bfe7f9ee46c9cf41bbf16ef72607793c80036.tar.bz2
Consistency between 'generate' and 'update' startup option
The commands 'doxygen -s -u df_su' and 'doxygen -u -s df_us' gave same results (updated specified file). The command 'doxygen -s -g df_sg' gave file 'df_sg' but 'doxygen -g -s df_gs' gave file 'Doxyfile'.
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 4aaec34..1af0781 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))
{