Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
epage
· 2y ago · 0 comments
Or if the command can't be undone and with significant side effects, be `--dry-run` by default and have an `--execute` flag
Comments
[–]
BD103
2y ago
Exactly. This is implemented by the Javascript code formatter Prettier [1] where you have to pass `--write` in order to overwrite an unformatted file.
[1]:
https://prettier.io