From f1364fbbad0aaa05fd5d684d6474593d6cfdc5f7 Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Wed, 18 Apr 2018 21:21:43 -0400 Subject: [PATCH] command: fix job dispatch arg check --- command/job_dispatch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command/job_dispatch.go b/command/job_dispatch.go index 4a7685928..ed3388685 100644 --- a/command/job_dispatch.go +++ b/command/job_dispatch.go @@ -102,10 +102,10 @@ func (c *JobDispatchCommand) Run(args []string) int { length = fullId } - // Check that we got exactly one node + // Check that we got one or two arguments args = flags.Args() - if l := len(args); l != 1 { - c.Ui.Error("This command takes one argument: ") + if l := len(args); l < 1 || l > 2 { + c.Ui.Error("This command takes one or two argument: [input source]") c.Ui.Error(commandErrorText(c)) return 1 }