diff --git a/command/alloc_status.go b/command/alloc_status.go index a3618c69f..074675976 100644 --- a/command/alloc_status.go +++ b/command/alloc_status.go @@ -52,7 +52,7 @@ func (c *AllocStatusCommand) Run(args []string) int { // Check that we got exactly one allocation ID args = flags.Args() - if len(args) == 0 { + if len(args) != 1 { c.Ui.Error(c.Help()) return 1 }