Fix documentation.

- `sq key subkey revoke` can only revoke subkeys; it can't revoke
    primary keys.
This commit is contained in:
Neal H. Walfield 2024-11-06 15:08:47 +01:00
parent 4d5b807f61
commit f817cb4a4a
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3

View File

@ -24,12 +24,12 @@ impl cert_designator::AdditionalDocs for CertDoc {
fn help(arg: &'static str, help: &'static str) -> clap::builder::StyledStr {
match arg {
"file" =>
"Revoke the specified (sub)keys on the key read from PATH"
"Revoke the specified subkeys on the key read from PATH"
.into(),
_ => {
debug_assert!(help.starts_with("Use certificates"));
help.replace("Use certificates",
"Revoke the specified (sub)keys on the key")
"Revoke the specified subkeys on the key")
.into()
},
}