mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
fix version option in cmd
This commit is contained in:
parent
e55e5033b8
commit
4edb8650e5
@ -413,6 +413,7 @@ func (c *cmd) Init(opts ...Option) error {
|
||||
}
|
||||
c.app.Name = c.opts.Name
|
||||
c.app.Version = c.opts.Version
|
||||
c.app.HideVersion = len(c.opts.Version) == 0
|
||||
c.app.Usage = c.opts.Description
|
||||
c.app.RunAndExitOnError()
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user