It looks like roc format --stdin --stdout
recursively traverses the current working directory.
If I understand processing of command line options correctly, then the file or directory to be processed by the formatter defaults to the current working directory. Does this really make sense if both --stdin
and --stdout
are present?
I understand that this little problem does not have the highest priority. But it is annoying to me because it prevents me from running the formatter from within an Emacs buffer. I can try to work on a solution (if we agree there is a problem).
Definitely sounds like a bug to me
I think a PR would be quite welcome
Probably the recursive behavior was added and this case was missed.
I created issue #6419. I'm going to work on a solution.
Last updated: Jul 06 2025 at 12:14 UTC