From a4deec5ebe18e3b26efb83c22684b37c0810dda6 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Tue, 25 Jul 2023 12:31:35 +0200 Subject: [PATCH] feat(convert): add shorthand -o flag (outputfile) --- cmd/file_convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/file_convert.go b/cmd/file_convert.go index 37ea80efd..16bd33547 100644 --- a/cmd/file_convert.go +++ b/cmd/file_convert.go @@ -100,7 +100,7 @@ can be converted into a 'kong-gateway-3.x' configuration file.`, fmt.Sprintf("desired format of the output, allowed formats: %v", destinationFormats)) convertCmd.Flags().StringVar(&convertCmdInputFile, "input-file", fileInDefault, "configuration file to be converted. Use `-` to read from stdin.") - convertCmd.Flags().StringVar(&convertCmdOutputFile, "output-file", fileOutDefault, + convertCmd.Flags().StringVarP(&convertCmdOutputFile, "output-file", "o", fileOutDefault, "file to write configuration to after conversion. Use `-` to write to stdout.") convertCmd.Flags().BoolVar(&convertCmdAssumeYes, "yes", false, "assume `yes` to prompts and run non-interactively.")