Skip to content

Commit

Permalink
fix(bin): help and version parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
trylovetom committed May 7, 2020
1 parent 0812c01 commit ab3e4c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/bin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export default async function main(argv: any): Promise<TonBinInstance | Error> {

function bootstrap() {
/* istanbul ignore next */
if (process.env.NODE_ENV === 'test' || parser.help || parser.version) {
if (
process.env.NODE_ENV === 'test' ||
parser.argv.help ||
parser.argv.version
) {
return
}
/* istanbul ignore next */
Expand Down

0 comments on commit ab3e4c2

Please sign in to comment.