Skip to content

Commit d135c80

Browse files
committed
docs(README): add example of array+enum
1 parent bd797c9 commit d135c80

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ opt.number({ default: 42 }); // --count 42
262262
opt.boolean({ aliases: ['v'] }); // --verbose, -v
263263
opt.enum(['a', 'b', 'c']); // --level a
264264
opt.array('string'); // --file x --file y
265+
opt.array(['low', 'medium', 'high']); // --priority low --priority high
265266
opt.count(); // -vvv → 3
266267
```
267268

0 commit comments

Comments
 (0)