You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add optional 'name' property to PositionalBase interface that allows
developers to specify meaningful names for positional arguments in
help text. Without a name, positionals display as <arg0>, <arg1>, etc.
Changes:
- Add name?: string to PositionalBase in types.ts
- Add formatPositionalUsage() and buildPositionalsUsage() helpers
- Update generateHelp() to show positionals in usage line
- Update generateCommandHelp() to show command positionals
- Add 5 new tests for positional name display
- Update examples to use named positionals
Usage: bargs.stringPos({ name: 'source', required: true })
Shows: $ my-cli [options] <source>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments