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 beautifier auto-convert options with dashes into underscores #1497

Closed
bitwiseman opened this issue Aug 22, 2018 · 0 comments
Closed

Make beautifier auto-convert options with dashes into underscores #1497

bitwiseman opened this issue Aug 22, 2018 · 0 comments

Comments

@bitwiseman
Copy link
Member

Description

#1423 is a perfect example of the problem. The CLI takes dashes (such as--wrap-attributes force-expand-multiline), but the beautifier only takes underscores in the names (such as { "wrap_attributes": "force-expand-multiline" }).

This cause tons of confusion and spurious bug reports. The beautifier should convert all dashes in options to underscores before processing. This will result in variability of inputs but will reduce user pain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant