diff --git a/command/catlistsvc/catalog_list_services.go b/command/catlistsvc/catalog_list_services.go index b61a742720..209cf3dcaf 100644 --- a/command/catlistsvc/catalog_list_services.go +++ b/command/catlistsvc/catalog_list_services.go @@ -15,7 +15,7 @@ import ( func New(ui cli.Ui) *cmd { c := &cmd{UI: ui} - c.initFlags() + c.init() return c } @@ -31,7 +31,7 @@ type cmd struct { tags bool } -func (c *cmd) initFlags() { +func (c *cmd) init() { c.flags = flag.NewFlagSet("", flag.ContinueOnError) c.flags.StringVar(&c.node, "node", "", "Node `id or name` for which to list services.") diff --git a/command/event/event.go b/command/event/event.go index e4efadbdfc..89eb912ceb 100644 --- a/command/event/event.go +++ b/command/event/event.go @@ -12,7 +12,7 @@ import ( func New(ui cli.Ui) *cmd { c := &cmd{UI: ui} - c.initFlags() + c.init() return c } @@ -27,7 +27,7 @@ type cmd struct { usage string } -func (c *cmd) initFlags() { +func (c *cmd) init() { c.flags = flag.NewFlagSet("", flag.ContinueOnError) c.flags.StringVar(&c.name, "name", "", "Name of the event.") diff --git a/command/exec/exec.go b/command/exec/exec.go index 5b5315f9cd..32b76fa7b8 100644 --- a/command/exec/exec.go +++ b/command/exec/exec.go @@ -21,7 +21,7 @@ import ( func New(ui cli.Ui, shutdownCh <-chan struct{}) *cmd { c := &cmd{UI: ui, shutdownCh: shutdownCh} - c.initFlags() + c.init() return c } @@ -38,7 +38,7 @@ type cmd struct { stopCh chan struct{} } -func (c *cmd) initFlags() { +func (c *cmd) init() { c.flags = flag.NewFlagSet("", flag.ContinueOnError) c.flags.StringVar(&c.conf.node, "node", "", "Regular expression to filter on node names.")