Skip to content

Commit 22fc5a2

Browse files
committed
Replaced -t_notime by -t_time and maked -t behave as -t_notime did before
Rationale: most of the time the time information is not needed and clutters the trace output so make the default without time.
1 parent db2b44d commit 22fc5a2

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

src/doxygen.cpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11074,8 +11074,8 @@ static void devUsage()
1107411074
msg(" -b making messages output unbuffered\n");
1107511075
#if ENABLE_TRACING
1107611076
msg(" -t [<file|stdout|stderr>] trace debug info to file, stdout, or stderr (default file stdout)\n");
11077-
msg(" -t_notime [<file|stdout|stderr>] trace debug info to file, stdout, or stderr (default file stdout),\n"
11078-
" but without time and thread information\n");
11077+
msg(" -t_time [<file|stdout|stderr>] trace debug info to file, stdout, or stderr (default file stdout),\n"
11078+
" and include time and thread information\n");
1107911079
#endif
1108011080
msg(" -d <level> enable a debug level, such as (multiple invocations of -d are possible):\n");
1108111081
Debug::printFlags();
@@ -11323,7 +11323,7 @@ void readConfiguration(int argc, char **argv)
1132311323
QCString traceName;
1132411324
bool genConfig=false;
1132511325
bool shortList=false;
11326-
bool traceTiming=true;
11326+
bool traceTiming=false;
1132711327
Config::CompareMode diffList=Config::CompareMode::Full;
1132811328
bool updateConfig=false;
1132911329
bool quiet = false;
@@ -11377,11 +11377,17 @@ void readConfiguration(int argc, char **argv)
1137711377
case 't':
1137811378
{
1137911379
#if ENABLE_TRACING
11380-
if (!strcmp(argv[optInd]+1,"t_notime")) traceTiming = false;
11381-
else if (!strcmp(argv[optInd]+1,"t")) traceTiming=true;
11380+
if (!strcmp(argv[optInd]+1,"t_time"))
11381+
{
11382+
traceTiming = true;
11383+
}
11384+
else if (!strcmp(argv[optInd]+1,"t"))
11385+
{
11386+
traceTiming = false;
11387+
}
1138211388
else
1138311389
{
11384-
err("option should be \"-t\" or \"-t_notime\", found: \"%s\".\n",argv[optInd]);
11390+
err("option should be \"-t\" or \"-t_time\", found: \"%s\".\n",argv[optInd]);
1138511391
cleanUpDoxygen();
1138611392
exit(1);
1138711393
}

0 commit comments

Comments
 (0)