From e7b70adc2c06026bd1b4df0da0dbaa3658719b77 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Mon, 2 Oct 2023 10:31:57 -0400 Subject: [PATCH] cli: improve `job` and `status` text (#18628) --- command/job_status.go | 2 +- command/status.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/command/job_status.go b/command/job_status.go index 899a5de4c..e897bc1ab 100644 --- a/command/job_status.go +++ b/command/job_status.go @@ -30,7 +30,7 @@ type JobStatusCommand struct { func (c *JobStatusCommand) Help() string { helpText := ` -Usage: nomad status [options] +Usage: nomad job status [options] Display status information about a job. If no job ID is given, a list of all known jobs will be displayed. diff --git a/command/status.go b/command/status.go index 012d1d262..d91f75a2b 100644 --- a/command/status.go +++ b/command/status.go @@ -27,6 +27,9 @@ Usage: nomad status [options] detect the type of resource being queried and display the appropriate status output. + If no arguments are provided, the command will fallback to "nomad job status", + which will list all jobs. + General Options: ` + generalOptionsUsage(usageOptsDefault) + `