Skip to content

Commit

Permalink
test: verify -- can be used on aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Jun 20, 2024
1 parent d328656 commit 9ef2cb9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/specs/type-flag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,15 @@ export default testSuite(({ describe }) => {

describe('aliases', ({ test }) => {
test('aliases', () => {
const argv = ['-s', 'hello', '-b', 'world', '-1', 'goodbye'];
const argv = [
// This is actually valid (e.g. `git commit -a --m message` works)
'--s',
'hello',
'-b',
'world',
'-1',
'goodbye',
];
const parsed = typeFlag(
{
string: {
Expand Down

0 comments on commit 9ef2cb9

Please sign in to comment.