monitor command takes no args

rm extra new line

fix lint errors

return after close

fix, simplify test
This commit is contained in:
Drew Bailey
2019-11-01 11:06:49 -04:00
parent 9a96c10d4c
commit f74bd99b2a
5 changed files with 20 additions and 18 deletions

View File

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