docs: clarify wording around destroy/apply args

inspired by #2360 with clarification on args vs flags

/cc @catsby
This commit is contained in:
Paul Hinze 2015-06-17 10:10:23 -05:00
parent b132dd284e
commit a75095aa69
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@ set of actions generated by a `terraform plan` execution plan.
## Usage
Usage: `terraform apply [options] [dir]`
Usage: `terraform apply [options] [dir-or-plan]`
By default, `apply` scans the current directory for the configuration
and applies the changes appropriately. However, a path to another configuration

View File

@ -18,9 +18,11 @@ Usage: `terraform destroy [options] [dir]`
Infrastructure managed by Terraform will be destroyed. This will ask for
confirmation before destroying.
This command accepts all the flags that the
[apply command](/docs/commands/apply.html) accepts. If `-force` is
set, then the destroy confirmation will not be shown.
This command accepts all the arguments and flags that the [apply
command](/docs/commands/apply.html) accepts, with the exception of a plan file
argument.
If `-force` is set, then the destroy confirmation will not be shown.
The `-target` flag, instead of affecting "dependencies" will instead also
destroy any resources that _depend on_ the target(s) specified.