Skip to content

Commit

Permalink
fix: properly specify cmdline flags to meow (#166)
Browse files Browse the repository at this point in the history
Fixes: #165
  • Loading branch information
ofrobots committed Jun 4, 2018
1 parent 76c3097 commit 2cebae4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/cli.ts
Expand Up @@ -42,7 +42,8 @@ export type VerbFilesFunction =

const logger: Logger = console;

const cli = meow(`
const cli = meow({
help: `
Usage
$ gts <verb> [<file>...] [options]
Expand All @@ -63,8 +64,14 @@ const cli = meow(`
$ gts check
$ gts fix
$ gts fix src/file1.ts src/file2.ts
$ gts clean
`);
$ gts clean`,
flags: {
help: {type: 'boolean'},
yes: {type: 'boolean', alias: 'y'},
no: {type: 'boolean', alias: 'n'},
'dry-run': {type: 'boolean'}
}
});

function usage(msg?: string): void {
if (msg) {
Expand Down

0 comments on commit 2cebae4

Please sign in to comment.