FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
16.83k stars 492 forks source link

cmd/age: improve user documentation #175

Closed codesoap closed 3 years ago

codesoap commented 3 years ago

Shows where -R/--recipients-file can be used, adds -R/--recipients-file to missing-recipient hint, and mention the possibility to use - with -i.

The (-r RECIPIENT | -R PATH)... syntax indicates that either -r or -R can be used (via ( | )) and that these arguments may be provided multiple times (via ...). I believe this is the most common way to represent this in usage texts. I like to take a look at http://docopt.org/ when writing usage texts.