enhancement: Log command line parameters on startup (fixes #1380)

If logging is enabled, also log the full command line used to start up
This commit is contained in:
Dimitris Panokostas 2024-08-27 20:14:26 +02:00
parent d34f437687
commit 41f350ae9c
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

@ -1217,6 +1217,13 @@ static void parse_cmdline_and_init_file(int argc, TCHAR **argv)
{
_tcscpy (optionsfile, _T(""));
write_log("Command line parameters:");
for (int i = 0; i < argc; i++)
{
write_log(" %s", argv[i]);
}
write_log("\n");
parse_cmdline_2(argc, argv);
_tcscat(optionsfile, restart_config);