Skip to content

docs: use explicit metavar to improve help formatting - #42

Merged
joanise merged 2 commits into
mainfrom
dev.ej/improve-help-messages
Nov 4, 2026
Merged

joanise merged 2 commits into
mainfrom
dev.ej/improve-help-messages

Conversation

@joanise

@joanise joanise commented Oct 30, 2026

Copy link
Copy Markdown
Member

@roedoejet roedoejet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like the motivation behind this, I think we can tweak the changes a bit.

Comment thread styletts2/cli/synthesize.py Resolved
Comment thread styletts2/cli/synthesize.py Outdated
"--output-type",
help="Output format(s) to produce.",
metavar="<format>",
help="Output format(s) to produce. One of: wav",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is obviously going to be changed to more than just wav but it's a little confusing to say "One of: wav"

For all of these situations where we've changed to a metavar, I think we should make it a bit clearer what the possible options are, maybe bolded at the top, with something like:

"Which format(s) to synthesize to: wav. Repeat --output-type to provide several output formats."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one I'll change to For now, only '**wav**' is supported until we implement more.

@joanise
joanise requested a review from roedoejet November 3, 2026 21:11

@roedoejet roedoejet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @joanise !

@joanise
joanise merged commit eccc5c5 into main Nov 4, 2026
2 checks passed
@joanise
joanise deleted the dev.ej/improve-help-messages branch November 4, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants