cacjs/cac

Implement `.version()` for sub commands

egoist opened this issue · 0 comments

Issue Type

  • Bug Report
  • Feature Request
  • Other

Expected

// app version
cli.version('0.0.0')

// sub app version
cli.command('build', 'build project')
.version('1.0.0')

Currently the cli.version call will only apply to non-sub commands.

Info

  • CAC version: 6.7.7