Skip to content

Commit

Permalink
Always print command line options in the log
Browse files Browse the repository at this point in the history
This should help with tech support issues.
  • Loading branch information
skyjake committed Sep 12, 2012
1 parent 7cff679 commit 10a288a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doomsday/engine/portable/src/dd_pinit.c
Expand Up @@ -135,6 +135,7 @@ void DD_ConsoleInit(void)
const char* outFileName = "doomsday.out";
ddstring_t nativePath;
boolean outFileOk;
int p;

DD_CheckArg("-out", &outFileName);
Str_Init(&nativePath); Str_Set(&nativePath, outFileName);
Expand All @@ -156,12 +157,10 @@ void DD_ConsoleInit(void)
Con_Message("Executable: " DOOMSDAY_NICENAME " " DOOMSDAY_VERSION_FULLTEXT ".\n");

// Print the used command line.
if(verbose)
Con_Message("Command line (%i strings):\n", CommandLine_Count());
for(p = 0; p < CommandLine_Count(); ++p)
{
int p;
Con_Message("Command line (%i strings):\n", CommandLine_Count());
for(p = 0; p < CommandLine_Count(); ++p)
Con_Message(" %i: %s\n", p, CommandLine_At(p));
Con_Message(" %i: %s\n", p, CommandLine_At(p));
}
}

Expand Down

0 comments on commit 10a288a

Please sign in to comment.