Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
fix: define help flag on initial command
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 8, 2018
1 parent f2ba728 commit e1b68a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/src/command.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ hello world from ./src/<%- name %>.ts!
<%_ if (type === 'single') { _%>
// add --version flag to show CLI version
version: flags.version({char: 'v'}),
// add --help flag to show CLI version
help: flags.help({char: 'h'}),
<%_ } _%>
help: flags.help({char: 'h'}),
// flag with a value (-n, --name=VALUE)
name: flags.string({char: 'n', description: 'name to print'}),
// flag with no value (-f, --force)
force: flags.boolean({char: 'f'}),
}
Expand Down

0 comments on commit e1b68a3

Please sign in to comment.