diff --git a/command/check.go b/command/check.go index d1f97a73d..c1d3771f0 100644 --- a/command/check.go +++ b/command/check.go @@ -21,7 +21,7 @@ type AgentCheckCommand struct { func (c *AgentCheckCommand) Help() string { helpText := ` -Usage: nomad check +Usage: nomad check [options] Display state of the Nomad agent. The exit code of the command is Nagios compatible and could be used with alerting systems. diff --git a/command/eval_status.go b/command/eval_status.go index 0fcde9aa1..67d854cd2 100644 --- a/command/eval_status.go +++ b/command/eval_status.go @@ -14,7 +14,7 @@ type EvalStatusCommand struct { func (c *EvalStatusCommand) Help() string { helpText := ` -Usage: nomad eval-status [options] +Usage: nomad eval-status [options] Display information about evaluations. This command can be used to inspect the current status of an evaluation as well as determine the reason an evaluation diff --git a/command/fs.go b/command/fs.go index 80b5242f0..16fa5a44a 100644 --- a/command/fs.go +++ b/command/fs.go @@ -31,7 +31,7 @@ type FSCommand struct { func (f *FSCommand) Help() string { helpText := ` -Usage: nomad fs +Usage: nomad fs [options] fs displays either the contents of an allocation directory for the passed allocation, or displays the file at the given path. The path is relative to the root of the alloc @@ -59,7 +59,7 @@ FS Specific Options: Causes the output to not stop when the end of the file is reached, but rather to wait for additional output. - -tail + -tail Show the files contents with offsets relative to the end of the file. If no offset is given, -n is defaulted to 10. diff --git a/command/logs.go b/command/logs.go index b8da3dfee..a6eaf4841 100644 --- a/command/logs.go +++ b/command/logs.go @@ -18,7 +18,7 @@ type LogsCommand struct { func (l *LogsCommand) Help() string { helpText := ` -Usage: nomad logs [options] +Usage: nomad logs [options] Streams the stdout/stderr of the given allocation and task. @@ -51,7 +51,7 @@ Logs Specific Options: -c Sets the tail location in number of bytes relative to the end of the logs. - ` + ` return strings.TrimSpace(helpText) } diff --git a/command/plan.go b/command/plan.go index 90d3e8135..99dd11e4f 100644 --- a/command/plan.go +++ b/command/plan.go @@ -31,7 +31,7 @@ type PlanCommand struct { func (c *PlanCommand) Help() string { helpText := ` -Usage: nomad plan [options] +Usage: nomad plan [options] Plan invokes a dry-run of the scheduler to determine the effects of submitting either a new or updated version of a job. The plan will not result in any diff --git a/command/validate.go b/command/validate.go index 6557c3ee8..7efadca0a 100644 --- a/command/validate.go +++ b/command/validate.go @@ -12,7 +12,7 @@ type ValidateCommand struct { func (c *ValidateCommand) Help() string { helpText := ` -Usage: nomad validate [options] +Usage: nomad validate [options] Checks if a given HCL job file has a valid specification. This can be used to check for any syntax errors or validation problems with a job.