Skip to content

Commit 1c143de

Browse files
authored
Update help output to consistently call out -state and -state-out flags as legacy and related to the local backend. (#37446)
1 parent 1a097f4 commit 1c143de

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

internal/command/apply.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,15 @@ Options:
384384
385385
-state=path Path to read and save state (unless state-out
386386
is specified). Defaults to "terraform.tfstate".
387+
Legacy option for the local backend only. See the local
388+
backend's documentation for more information.
387389
388390
-state-out=path Path to write state to that is different than
389391
"-state". This can be used to preserve the old
390392
state.
393+
Legacy option for the local backend only. See the local
394+
backend's documentation for more information.
395+
391396
392397
-var 'foo=bar' Set a value for one of the input variables in the root
393398
module of the configuration. Use this option more than

internal/command/output.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ Usage: terraform [global options] output [options] [NAME]
109109
Options:
110110
111111
-state=path Path to the state file to read. Defaults to
112-
"terraform.tfstate". Ignored when remote
113-
state is used.
112+
"terraform.tfstate".
113+
Legacy option for the local backend only. See
114+
the local backend's documentation for more
115+
information.
114116
115117
-no-color If specified, output won't contain any color.
116118

internal/command/state_rm.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ Options:
190190
191191
-state=PATH Path to the state file to update. Defaults to the
192192
current workspace state.
193+
Legacy option for the local backend only. See
194+
the local backend's documentation for more
195+
information.
193196
194197
-ignore-remote-version Continue even if remote and local Terraform versions
195198
are incompatible. This may result in an unusable

0 commit comments

Comments
 (0)