fix arg check

This commit is contained in:
Alex Dadgar
2015-11-16 18:44:37 -08:00
parent 08d8ae3541
commit 57cc352610

View File

@@ -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
}