fatal on command error

This commit is contained in:
Asim Aslam 2020-02-02 19:49:59 +00:00
parent 003f00b483
commit a9d371e727

View File

@ -87,13 +87,15 @@ func (s *service) Init(opts ...Option) {
}
// Initialise the command flags, overriding new service
_ = s.opts.Cmd.Init(
if err := s.opts.Cmd.Init(
cmd.Broker(&s.opts.Broker),
cmd.Registry(&s.opts.Registry),
cmd.Transport(&s.opts.Transport),
cmd.Client(&s.opts.Client),
cmd.Server(&s.opts.Server),
)
); err != nil {
log.Fatal(err)
}
})
}