Fix the CLI -h and --help switches (#16523)
Closes #16522
Summary of the issue:
The commandline help switches -h and --help stopped working as of NVDA 2023.3.4.
Description of user facing changes
-h, --help CLI flags work again.
Description of development approach
The actual error was in nvda.pyw, line 143, where the log file destination was given as:
%TEMP%/nvda.log
This was introduced in 13978bc.
Because argparse uses % characters to initiate escape sequences, this line was being interpreted as containing two escapes: "%T" and "%/", though the second one was never reached.
Changed:
The percent signs to double percent signs ("%%"), to prevent them being treated as escape sequences.
Changed the slash ("/"), to a Windows-appropriate backslash, properly escaped ("\\").
Quoted the whole string for display purposes, to separate it from the closing period of the sentence.
Fixed the grammar of the previous line.