gpg2 features a bunch of options to control the exact
behaviour and to change the default configuration.
|• GPG Configuration Options:||How to change the configuration.|
|• GPG Key related Options:||Key related options.|
|• GPG Input and Output:||Input and Output.|
|• OpenPGP Options:||OpenPGP protocol specific options.|
|• Compliance Options:||Compliance options.|
|• GPG Esoteric Options:||Doing things one usually don’t want to do.|
|• Deprecated Options:||Deprecated options.|
Long options can be put in an options file (default "~/.gnupg/gpg.conf"). Short option names will not work - for example, "armor" is a valid option for the options file, while "a" is not. Do not write the 2 dashes, but simply the name of the option and any required arguments. Lines with a hash (’#’) as the first non-white-space character are ignored. Commands may be put in this file too, but that is not generally useful as the command will execute automatically with every execution of gpg.
Please remember that option parsing stops as soon as a non-option is encountered, you can explicitly stop parsing by using the special option --.