Closed ktetzlaff closed 1 month ago
Good point, and thank you for bringing it up. I agree with your first suggestion; even though the filename affects the parser, it also affects other parts of the tool such as the EditorConfig logic, so it can go under generic flags.
A little nitpick ...
The shfmt man page states
Here's the problem: The
--filename
flag, which is intended to help with finding EditorConfig files when reading from stdin is listed under Parser flags and thus (according to the statement above) should stop EditorConfig formatting options from being used.Possible solutions:
--filename
flag to either the Generic or Utility flags section, or--filename
flag to the statement quoted above.