fix `nomad alloc signal` help message (#10917)

This commit is contained in:
Luiz Aoqui 2021-07-21 11:02:44 -04:00 committed by GitHub
parent a26874215a
commit 484037aff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

3
.changelog/10917.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed the help message for the `nomad alloc signal` command
```

View File

@ -15,9 +15,9 @@ type AllocSignalCommand struct {
func (a *AllocSignalCommand) Help() string { func (a *AllocSignalCommand) Help() string {
helpText := ` helpText := `
Usage: nomad alloc signal [options] <signal> <allocation> <task> Usage: nomad alloc signal [options] <allocation> <task>
signal an existing allocation. This command is used to signal a specific alloc Signal an existing allocation. This command is used to signal a specific alloc
and its subtasks. If no task is provided then all of the allocations subtasks and its subtasks. If no task is provided then all of the allocations subtasks
will receive the signal. will receive the signal.
@ -32,11 +32,11 @@ General Options:
Signal Specific Options: Signal Specific Options:
-s -s
Specify the signal that the selected tasks should receive. Specify the signal that the selected tasks should receive. Defaults to SIGKILL.
-task <task-name> -task <task-name>
Specify the individual task that will receive the signal. If task name is given Specify the individual task that will receive the signal. If task name is given
with both an argument and the '-task' option, preference is given to the '-task' with both an argument and the '-task' option, preference is given to the '-task'
option. option.
-verbose -verbose