Re:Command Line Interface Guidelines
by epage on Tuesday February 06, 2024 @12:36PM
(#39277535)
Or if the command can't be undone and with significant side effects, be `--dry-run` by default and have an `--execute` flag
[ Parent
| on HN ]
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