Skip to content

Commit

Permalink
fix(config): restore yargs exit behavior for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Aug 29, 2020
1 parent 19cb6be commit b3669da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/config/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ export function createParser(modeset: Modeback): Parser<ParsedArgs> {
},
})
.completion()
.exitProcess(false)
.fail((msg: string, err: Error) => {
modeset(Commands.ERROR);
})
.help()
.alias('help', 'h')
.version(VERSION_INFO.package.version)
Expand Down
2 changes: 1 addition & 1 deletion test/config/TestArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('args', () => {
Commands.ISSUES,
Commands.LABELS,
]) {
const args = parser.parse([command]);
const args = parser.parse([command, '--config', 'foo.yml']);
expect(args).to.deep.include({
dryrun: true,
});
Expand Down

0 comments on commit b3669da

Please sign in to comment.