//! A command-line frontend for Sequoia. //! //! # Usage //! //! ```text //! Sequoia is an implementation of OpenPGP. This is a command-line frontend. //! //! USAGE: //! sq [FLAGS] [OPTIONS] //! //! FLAGS: //! -f, --force Overwrite existing files //! -h, --help Prints help information //! -V, --version Prints version information //! //! OPTIONS: //! --home Sets the home directory to use //! --known-notation ... The notation name is considered known. This is used when validating //! signatures. Signatures that have unknown notations with the critical bit set //! are considered invalid. //! -m, --mapping Sets the realm and mapping to use [default: org.sequoia-pgp.contacts/default] //! -p, --policy Sets the network policy to use //! //! SUBCOMMANDS: //! decrypt Decrypts an OpenPGP message //! encrypt Encrypts a message //! sign Signs a message //! verify Verifies a message //! mapping Interacts with key mappings //! keyserver Interacts with keyservers //! autocrypt Autocrypt support //! dearmor Removes ASCII Armor from a file //! enarmor Applies ASCII Armor to a file //! help Prints this message or the help of the given subcommand(s) //! inspect Inspects a sequence of OpenPGP packets //! key Manipulates keys //! list Lists key mappings and known keys //! packet OpenPGP Packet manipulation //! wkd Interacts with Web Key Directories //! ``` //! //! ## Subcommand decrypt //! //! ```text //! Decrypts an OpenPGP message //! //! USAGE: //! sq decrypt [FLAGS] [OPTIONS] [--] [FILE] //! //! FLAGS: //! --dump Print a packet dump to stderr //! --dump-session-key Prints the session key to stderr //! -h, --help Prints help information //! -x, --hex Print a hexdump (implies --dump) //! -V, --version Prints version information //! //! OPTIONS: //! -o, --output Sets the output file to use //! --secret-key-file ... Secret key to decrypt with, given as a file (can be given multiple times) //! --sender-cert-file ... The sender's certificate verify signatures with, given as a file (can be //! given multiple times) //! -n, --signatures The number of valid signatures required. Default: 0 //! //! ARGS: //! Sets the input file to use //! ``` //! //! ## Subcommand encrypt //! //! ```text //! Encrypts a message //! //! USAGE: //! sq encrypt [FLAGS] [OPTIONS] [--] [FILE] //! //! FLAGS: //! -B, --binary Don't ASCII-armor encode the OpenPGP data //! -h, --help Prints help information //! -s, --symmetric Encrypt with a password (can be given multiple times) //! --use-expired-subkey If a certificate has only expired encryption-capable subkeys, fall back to using the one //! that expired last //! -V, --version Prints version information //! //! OPTIONS: //! --compression //! Selects compression scheme to use [default: pad] [possible values: none, pad, zip, zlib, bzip2] //! //! --mode //! Selects what kind of keys are considered for encryption. Transport select subkeys marked as suitable for //! transport encryption, rest selects those for encrypting data at rest, and all selects all encryption-capable //! subkeys [default: all] [possible values: transport, rest, all] //! -o, --output Sets the output file to use //! -r, --recipient