From b31961c8fc629eb7b7971f129b3c6486898b80b4 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Fri, 3 Apr 2020 16:51:12 +0100 Subject: [PATCH 1/2] for -o to work, you specify it as an alias rather than in the Name --- cmd/build-lambda-zip/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/build-lambda-zip/main.go b/cmd/build-lambda-zip/main.go index ddbd0e48..6524c90b 100644 --- a/cmd/build-lambda-zip/main.go +++ b/cmd/build-lambda-zip/main.go @@ -17,7 +17,8 @@ func main() { Usage: "Put an executable and supplemental files into a zip file that works with AWS Lambda.", Flags: []cli.Flag{ &cli.StringFlag{ - Name: "output, o", + Name: "output", + Aliases: []string{"o"}, Value: "", Usage: "output file path for the zip. Defaults to the first input file name.", }, From 8344cf811d7d381ebe3a27392b0a49518a151c94 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Fri, 3 Apr 2020 16:54:45 +0100 Subject: [PATCH 2/2] gofmt --- cmd/build-lambda-zip/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/build-lambda-zip/main.go b/cmd/build-lambda-zip/main.go index 6524c90b..ef372ee6 100644 --- a/cmd/build-lambda-zip/main.go +++ b/cmd/build-lambda-zip/main.go @@ -17,10 +17,10 @@ func main() { Usage: "Put an executable and supplemental files into a zip file that works with AWS Lambda.", Flags: []cli.Flag{ &cli.StringFlag{ - Name: "output", + Name: "output", Aliases: []string{"o"}, - Value: "", - Usage: "output file path for the zip. Defaults to the first input file name.", + Value: "", + Usage: "output file path for the zip. Defaults to the first input file name.", }, }, Action: func(c *cli.Context) error {