Skip to content

Commit e037442

Browse files
committed
Merge branch 'master' of https://github.com/nullishamy/args-ts
2 parents 102182c + e82d36a commit e037442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export const parserOpts: ParserOpts = {
1919

2020
const parser = new Args(parserOpts)
2121
// Short arguments are optional, long arguments are required
22-
.add(['--long-arg', '-l'], a.String())
22+
.add(['--long-arg', '-l'], a.string())
2323
// You can chain calls to type to change how it is parsed
2424
// and this will reflect in the parsed types, if appropriate
25-
.add(['--optional'], a.String().optional())
25+
.add(['--optional'], a.string().optional())
2626

2727
const result = await parser.parse('-l "hello world"')
2828
// { 'long-arg': 'hello world', optional: undefined }

0 commit comments

Comments
 (0)