Swift-format freezes on launch if the are no args provided

Hi, I'm trying to use swift-format and that freezes on launch if there are no args provided.
Installed the latest version using homebrew and also then tried to build locally from tag: 510.1.0, eventually this behavior reproduces.

swift-format

Thanks in advance.

If no paths are provided, swift-format waits for input from stdin, and its default behavior is to write to stdout. If you want to do something like format all the files in the current directory, you can write swift-format --in-place *.swift or swift-format --recursive --in-place ..

1 Like

Yeah, it worked, kinda missed in docs this behavior, thank you!