Skip to content

Commit

Permalink
Add test for dual long options (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Jan 14, 2025
1 parent 8c53816 commit 6269263
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/options.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ expectType<{ debug?: true }>(us6);
const us7 = program.addOption(new Option('-d --debug')).opts();
expectType<{ debug?: true }>(us7);

const us8 = program.addOption(new Option('--db, --debug')).opts();
expectType<{ debug?: true }>(us8);

// choices

// narrows required value to given choices
Expand Down

0 comments on commit 6269263

Please sign in to comment.