From d6fe1cf5c8cb848dfa5155da2852729f60521588 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 27 Dec 2019 17:33:26 -0800 Subject: [PATCH] cmd/age: provide a --output option (#28) For consistency across all options. --- cmd/age/age.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/age/age.go b/cmd/age/age.go index 60fd169..a272062 100644 --- a/cmd/age/age.go +++ b/cmd/age/age.go @@ -32,7 +32,7 @@ const usage = `Usage: age --decrypt [-i KEY] [-o OUTPUT] [INPUT] 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. -p, --passphrase Encrypt with a passphrase. -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, "passphrase", false, "use a passphrase") 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, "armor", false, "generate an armored file") flag.Var(&recipientFlags, "r", "recipient (can be repeated)")