From a6aa75931b428d1413da49a3f32703dec13fd49d Mon Sep 17 00:00:00 2001 From: Brian Sidebotham Date: Tue, 28 Jun 2022 19:43:41 +0100 Subject: [PATCH] Update internal/command/fmt.go Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com> --- internal/command/fmt.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/internal/command/fmt.go b/internal/command/fmt.go index aff52e9d5f..b57bc302bf 100644 --- a/internal/command/fmt.go +++ b/internal/command/fmt.go @@ -530,14 +530,16 @@ func (c *FmtCommand) Help() string { helpText := ` Usage: terraform [global options] fmt [options] [TARGET] - Rewrites all Terraform configuration files to a canonical format. Both - configuration files (.tf) and variables files (.tfvars) are updated. - JSON files (.tf.json or .tfvars.json) are not modified. - - If TARGET is not specified then the current working directory will be - used. If TARGET is a file, only that file will be used. If TARGET is - "-" then content will be read from STDIN. The given content must be in - the Terraform language native syntax; JSON is not supported. + Rewrites all Terraform configuration files to a canonical format. Both + configuration files (.tf) and variables files (.tfvars) are updated. + JSON files (.tf.json or .tfvars.json) are not modified. + + If TARGET is not specified, the command uses the current working directory. + If TARGET is a file, the command only uses the specified file. If TARGET + is "-" then the command reads from STDIN. + + The content must be in the Terraform language native syntax; JSON is not + supported. Options: