Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make field name output consistent when using placeholders #276

Merged

Conversation

zanvd
Copy link
Contributor

@zanvd zanvd commented Dec 5, 2024

Solves #275

Used the common spec.placeholder property for usage and errors. This property is set in cmdFromStruct and has sensible fallback, so it made sense to use it as the main output representation.

Didn't write any additional tests, due to current ones not testing the actual output strings and wanted to keep it that way.

Copy link
Owner

@alexflint alexflint left a comment

Choose a reason for hiding this comment

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

Thanks @zanvd, this is very helpful.

@alexflint alexflint merged commit f218789 into alexflint:master Dec 11, 2024
3 checks passed
@zanvd zanvd deleted the make-placeholder-output-consistent branch December 11, 2024 08:18
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