Merge pull request #165 from foxliu20/master

fix version option in cmd
This commit is contained in:
Asim Aslam 2017-05-09 12:25:36 +01:00 committed by GitHub
commit 39fb03fba6

View File

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