Fix output of 'nomad deployment fail' with no arg

This commit is contained in:
Brian Lalor
2018-12-13 13:22:17 -05:00
committed by GitHub
parent 6e39a3ea59
commit 40697ab6c1

View File

@@ -79,10 +79,10 @@ func (c *DeploymentFailCommand) Run(args []string) int {
return 1
}
// Check that we got no arguments
// Check that we got one argument
args = flags.Args()
if l := len(args); l != 1 {
c.Ui.Error("This command takes no arguments")
c.Ui.Error("This command takes one argument: <deployment id>")
c.Ui.Error(commandErrorText(c))
return 1
}