Skip to content

Commit

Permalink
update help text for hcl2_upgrade (hashicorp#10624)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwampDragons authored Feb 15, 2021
1 parent 80ed988 commit cac6b04
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion command/hcl2_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,18 @@ func isSensitiveVariable(key string, vars []*template.Variable) bool {

func (*HCL2UpgradeCommand) Help() string {
helpText := `
Usage: packer hcl2_upgrade -output-file=JSON_TEMPLATE.pkr.hcl JSON_TEMPLATE...
Usage: packer hcl2_upgrade [options] TEMPLATE
Will transform your JSON template into an HCL2 configuration.
Options:
-output-file=path Set output file name. By default this will be the
TEMPLATE name with ".pkr.hcl" appended to it. To be a
valid Packer HCL template, it must have the suffix
".pkr.hcl"
-with-annotations Add helper annotation comments to the file to help new
HCL2 users understand the template format.
`

return strings.TrimSpace(helpText)
Expand Down

0 comments on commit cac6b04

Please sign in to comment.