fix: add -h and -v flags for single
MODIFY
templates/src/command.js.ejs
templates/src/command.js.ejs
@@ -18,9 +18,9 @@ Extra documentation goes here
<%- klass %>.flags = {
<%_ if (type === 'single') { _%>
// add --version flag to show CLI version
- version: flags.version(),
+ version: flags.version({char: 'v'}),
// add --help flag to show CLI version
- help: flags.help(),
+ help: flags.help({char: 'h'}),
<%_ } _%>
name: flags.string({char: 'n', description: 'name to print'}),
}

MODIFY
templates/src/command.ts.ejs
templates/src/command.ts.ejs
@@ -20,9 +20,9 @@ hello myname from .src/<%- name %>.ts!
static flags = {
<%_ if (type === 'single') { _%>
// add --version flag to show CLI version
- version: flags.version(),
+ version: flags.version({char: 'v'}),
// add --help flag to show CLI version
- help: flags.help(),
+ help: flags.help({char: 'h'}),
<%_ } _%>
// flag with a value (-n, --name=VALUE)

fix: add -h and -v flags for single (#62)