We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bac142f commit b3c1f06Copy full SHA for b3c1f06
1 file changed
README.md
@@ -249,6 +249,8 @@ All option helpers accept these properties:
249
| `hidden` | `boolean` | Hide from `--help` output |
250
| `required` | `boolean` | Mark as required (makes the option non-nullable) |
251
252
+Example:
253
+
254
```typescript
255
bargs.string({
256
aliases: ['o'],
@@ -279,6 +281,8 @@ bargs.variadic('string'); // [files...]
279
281
| `name` | `string` | Display name in help (defaults to `arg0`, `arg1`, ...) |
280
282
| `required` | `boolean` | Mark as required (shown as `<name>` vs `[name]`) |
283
284
285
286
287
bargs.stringPos({
288
name: 'file',
0 commit comments