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

Commit

Permalink
cli: abort on unknown options (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Jul 28, 2019
1 parent 4f7d4c9 commit e8b7f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ prog.command('export [dest]')
}
});

prog.parse(process.argv);
prog.parse(process.argv, { unknown: (arg: string) => `Unknown option: ${arg}` });


async function _build(
Expand Down

0 comments on commit e8b7f48

Please sign in to comment.