Using GnuPG 2.2.10 for Windows, with the use case of:
- unattended file decryption (via scheduled task)
- passphrase entry on command line
- use embedded filename for decrypted file
- log to file
We are seeing the following warning in the log file:
YYYY-MM-DD HH:MM:SS gpg WARNING: no command supplied. Trying to guess what you mean ...
The following command line is used:
gpg.exe --log-file logfile.txt --batch --yes --pinentry-mode loopback --passphrase "the passphrase" --use-embedded-filename "encryptedfile.pgp"
From our understanding, this is the command we have to use for this unattended decryption using embedded filename to work. We cannot use --decrypt as the decryption is to file not standard output, and we cannot use "output" as the decrypted file needs to use the embedded filename, which is not known in advance.
If indeed the command line above is correct for our described use case then there should not be a warning produced about no command supplied and the program having to guess at what was meant by the command line.