mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-07 12:35:14 +00:00
cmd/age: provide a --output option (#28)
For consistency across all options.
This commit is contained in:
committed by
Filippo Valsorda
parent
18edf29a75
commit
d6fe1cf5c8
@@ -32,7 +32,7 @@ const usage = `Usage:
|
|||||||
age --decrypt [-i KEY] [-o OUTPUT] [INPUT]
|
age --decrypt [-i KEY] [-o OUTPUT] [INPUT]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-o OUTPUT Write the result to the file at path OUTPUT.
|
-o, --output OUTPUT Write the result to the file at path OUTPUT.
|
||||||
-a, --armor Encrypt to a PEM encoded format.
|
-a, --armor Encrypt to a PEM encoded format.
|
||||||
-p, --passphrase Encrypt with a passphrase.
|
-p, --passphrase Encrypt with a passphrase.
|
||||||
-r, --recipient RECIPIENT Encrypt to the specified RECIPIENT. Can be repeated.
|
-r, --recipient RECIPIENT Encrypt to the specified RECIPIENT. Can be repeated.
|
||||||
@@ -69,6 +69,7 @@ func main() {
|
|||||||
flag.BoolVar(&passFlag, "p", false, "use a passphrase")
|
flag.BoolVar(&passFlag, "p", false, "use a passphrase")
|
||||||
flag.BoolVar(&passFlag, "passphrase", false, "use a passphrase")
|
flag.BoolVar(&passFlag, "passphrase", false, "use a passphrase")
|
||||||
flag.StringVar(&outFlag, "o", "", "output to `FILE` (default stdout)")
|
flag.StringVar(&outFlag, "o", "", "output to `FILE` (default stdout)")
|
||||||
|
flag.StringVar(&outFlag, "output", "", "output to `FILE` (default stdout)")
|
||||||
flag.BoolVar(&armorFlag, "a", false, "generate an armored file")
|
flag.BoolVar(&armorFlag, "a", false, "generate an armored file")
|
||||||
flag.BoolVar(&armorFlag, "armor", false, "generate an armored file")
|
flag.BoolVar(&armorFlag, "armor", false, "generate an armored file")
|
||||||
flag.Var(&recipientFlags, "r", "recipient (can be repeated)")
|
flag.Var(&recipientFlags, "r", "recipient (can be repeated)")
|
||||||
|
|||||||
Reference in New Issue
Block a user