This commit is contained in:
Alex Dadgar
2016-06-07 11:33:55 -07:00
parent cc80c2442f
commit baff94f3ba
5 changed files with 10 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ func generalOptionsUsage() string {
Default = http://127.0.0.1:4646
-region=<region>
The region of the Nomad servers to forward commands too.
The region of the Nomad servers to forward commands to.
Overrides the NOMAD_REGION environment variable if set.
Defaults to the Agent's local region.
`

View File

@@ -45,7 +45,7 @@ Usage: nomad plan [options] <file>
give insight into what the scheduler will attempt to do and why.
If the job has specified the region, the -region flag and NOMAD_REGION
environment variable are overridden to the job's region.
environment variable are overridden and the the job's region is used.
General Options:

View File

@@ -38,7 +38,7 @@ Usage: nomad run [options] <file>
issues or internal errors, are indicated by exit code 1.
If the job has specified the region, the -region flag and NOMAD_REGION
environment variable are overridden to the job's region.
environment variable are overridden and the the job's region is used.
General Options:

View File

@@ -4,6 +4,10 @@ module CommandHelpers
<<EOF
* `-address=<addr>`: The address of the Nomad server. Overrides the `NOMAD_ADDR`
environment variable if set. Defaults to `http://127.0.0.1:4646`.
* `-region=<region>`: The region of the Nomad server to forward commands to.
Overrides the `NOMAD_REGION` environment variable if set. Defaults to the
Agent's local region.
EOF
end
end

View File

@@ -32,6 +32,9 @@ there are job placement issues encountered (unsatisfiable constraints, resource
exhaustion, etc), then the exit code will be 2. Any other errors, including
client connection issues or internal errors, are indicated by exit code 1.
If the job has specified the region, the -region flag and NOMAD_REGION
environment variable are overridden and the the job's region is used.
## General Options
<%= general_options_usage %>