MCPcopy
hub / github.com/cacjs/cac / version

Method version

src/cac.ts:112–116  ·  view source on GitHub ↗

* Show version number when `-v, --version` flags appear. *

(version: string, customFlags = '-v, --version')

Source from the content-addressed store, hash-verified

110 *
111 */
112 version(version: string, customFlags = '-v, --version'): this {
113 this.globalCommand.version(version, customFlags)
114 this.showVersionOnExit = true
115 return this
116 }
117
118 /**
119 * Add a global example.

Callers 3

help.tsFile · 0.45
sub-command.tsFile · 0.45
index.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected