Skip to content

Commit

Permalink
monitor command takes no args
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Nov 1, 2019
1 parent 334df12 commit 77c7a04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions command/agent_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ func (c *MonitorCommand) Run(args []string) int {
return 1
}

args = flags.Args()
if l := len(args); l != 0 {
c.Ui.Error("This command takes no arguments")
c.Ui.Error(commandErrorText(c))
return 1
}

client, err := c.Meta.Client()
if err != nil {
c.Ui.Error(fmt.Sprintf("Error initializing client: %s", err))
Expand Down

0 comments on commit 77c7a04

Please sign in to comment.