Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const version = (opts: Partial> = {}) => {
return Parser.flags.boolean({
// char: 'v',
description: 'show CLI version',
...opts,
parse: (_: any, cmd: Command) => {
cmd.log(cmd.config.userAgent)
cmd.exit(0)
},
})
}
export const help = (opts: Partial> = {}) => {
export function build(defaults: Partial>): Definition {
return Parser.flags.build(defaults as any)
}