E.g.:
$ g10/gpg --command-fd=foobar --status-fd=foobar --decrypt ../tests/openpgp/samplemsgs/enc-1-key-1.gpg gpg: NOTE: THIS IS A DEVELOPMENT VERSION! gpg: It is only intended for test purposes and should NOT be gpg: used in a production environment or with production keys! gpg: public key is 9185878E4FCD74C0 [GNUPG:] ENC_TO 9185878E4FCD74C0 18 0 gpg: encrypted with ECDH key, ID 9185878E4FCD74C0 [GNUPG:] NO_SECKEY 9185878E4FCD74C0 [GNUPG:] BEGIN_DECRYPTION [GNUPG:] DECRYPTION_FAILED gpg: decryption failed: No secret key [GNUPG:] END_DECRYPTION