We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 102182c + e82d36a commit e037442Copy full SHA for e037442
README.md
@@ -19,10 +19,10 @@ export const parserOpts: ParserOpts = {
19
20
const parser = new Args(parserOpts)
21
// Short arguments are optional, long arguments are required
22
- .add(['--long-arg', '-l'], a.String())
+ .add(['--long-arg', '-l'], a.string())
23
// You can chain calls to type to change how it is parsed
24
// and this will reflect in the parsed types, if appropriate
25
- .add(['--optional'], a.String().optional())
+ .add(['--optional'], a.string().optional())
26
27
const result = await parser.parse('-l "hello world"')
28
// { 'long-arg': 'hello world', optional: undefined }
0 commit comments