X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/58507325768f8f0a6cef7ba37de4f8492b92fc3b..7c40480318648672af86e03bc72bc45c07194c37:/key.1 diff --git a/key.1 b/key.1 index 785021e..459a0b3 100644 --- a/key.1 +++ b/key.1 @@ -98,6 +98,10 @@ is one of: .I tag .IR attr ... .br +.B getattr +.I tag +.I attr +.br .B lock .I qtag .br @@ -836,6 +840,13 @@ An attribute can be deleted by assigning it an empty value. Although the keyring file format is capable of representing an attribute with an empty value as distinct from a nonexistant attribute, this interface does not allow empty attributes to be set. +.SS "getattr" +Fetches a single attribute of a key. The key whose attribute is to be +read is given by its +.IR tag . +The attribute's value is written to standard output followed by a +newline. If the key or attribute is absent, a message is written to +standard error and the program exits nonzero. .SS "comment" Sets, deletes or changes the comment attached to a key. The first argument is a key tag or keyid which names the key to be modified; the @@ -941,5 +952,5 @@ you want them to be replaced during the merge. .SH "SEE ALSO" .BR keyring (5). .SH AUTHOR -Mark Wooding, +Mark Wooding,