Skip to content

Commit

Permalink
docs: add help doc
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed May 5, 2020
1 parent 91f4ff1 commit 2fdd8da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .type-coverage/result.json
Expand Up @@ -79,9 +79,9 @@
"anys": []
},
"packages/cli/src/index.ts": {
"hash": "39b0d90288726f0a7ee6474931ebf15528890c92",
"correctCount": 160,
"totalCount": 160,
"hash": "63dc238ed233b9c453553d676387627cf18fde3f",
"correctCount": 172,
"totalCount": 172,
"anys": []
},
"packages/cli/src/lib.d.ts": {
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -38,6 +38,7 @@ name | type | description
`--ignore-catch` | boolean? | [ignore catch](#ignore-catch)
`--cache` | boolean? | [enable cache](#enable-cache)
`--ignore-files` | string[]? | [ignore files](#ignore-files)
`-h`, `--help` | boolean? | show help

### strict mode

Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/index.ts
Expand Up @@ -25,6 +25,7 @@ function printHelp() {
--ignore-catch boolean? ignore catch
--cache boolean? enable cache
--ignore-files string[]? ignore files
-h,--help boolean? show help
`)
}

Expand All @@ -39,7 +40,7 @@ async function executeCommandLine() {

if (argv.h || argv.help) {
printHelp()
return process.exit(0)
process.exit(0)
}

suppressError = argv.suppressError
Expand Down

0 comments on commit 2fdd8da

Please sign in to comment.