Run gpg with "--key-gen" and "--passphrase xxx" command line flags. Notice that
even though you've supplied the passphrase on the command line, and gpg knows
not to ask for one interactively, it still spits out this message:
You need a Passphrase to protect your secret key.
This message should be suppressed when the "--passphrase" flag is used.