Skip to content

defineCli's auto-generated usage omits positionals entirely #2

Description

@figulusproject

buildUsage() only iterates def.flags. A CLI with required positionals gets a cli.usage that silently drops them, even though positionals is a commonly-required part of the definition. Right now the only way to get positionals into the usage string is to bypass the auto-generation entirely via the usage override.

Todo: let positionals carry an optional label alongside the schema, and have buildUsage prepend it before the flag list.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions