Skip to content

Commit

Permalink
command: fix job dispatch arg check
Browse files Browse the repository at this point in the history
  • Loading branch information
nickethier committed Apr 19, 2018
1 parent 0216a8e commit f1364fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command/job_dispatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: <parameterized job>")
if l := len(args); l < 1 || l > 2 {
c.Ui.Error("This command takes one or two argument: <parameterized job> [input source]")
c.Ui.Error(commandErrorText(c))
return 1
}
Expand Down

0 comments on commit f1364fb

Please sign in to comment.