mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
monitor command takes no args
rm extra new line fix lint errors return after close fix, simplify test
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user