From 2e3b5a6806ed9fde515f82cbb9fac115bfcf8511 Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:24:03 -0700 Subject: [PATCH] CliArgParser: clarify `--stdin` description --- scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala b/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala index 495a02630e..f7c0f8fdaf 100644 --- a/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala +++ b/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala @@ -19,7 +19,7 @@ object CliArgParser { |scalafmt --mode diff # Format all files that were edited in git diff against master branch. |scalafmt --mode changed # Format files listed in `git status` (latest changes against previous commit. |scalafmt --diff-branch 2.x # same as --diff, except against branch 2.x - |scalafmt --stdin # read from stdin and print to stdout + |scalafmt --stdin # read from stdin (doesn't imply --stdout) |scalafmt --stdin --assume-filename foo.sbt < foo.sbt # required when using --stdin to format .sbt files. |scalafmt Code1.scala A.scala # write formatted contents to file. |scalafmt --stdout Code.scala # print formatted contents to stdout.