Skip to content

Commit 749ff8a

Browse files
committed
chore: update playground
1 parent cb3d9c2 commit 749ff8a

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

playground/args.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
import { createArgs } from '../src/index.js'
1+
import { createArgs } from '../src'
22

3-
interface Args {}
4-
5-
const args = createArgs<Args>()
3+
interface Args {
4+
a?: string
5+
b?: boolean
6+
c?: string
7+
}
8+
const args = createArgs<Args>({
9+
argv: ['arg', '-a', 'value-a', '-b', '-c', 'value-c'],
10+
alias: {
11+
d: ['c', 'f'],
12+
},
13+
})
614

715
console.log(args)

0 commit comments

Comments
 (0)