Skip to content

Commit

Permalink
feat(convert): add shorthand -o flag (outputfile)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jul 25, 2023
1 parent 0b68e88 commit a4deec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/file_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit a4deec5

Please sign in to comment.