Skip to content

Commit

Permalink
CliArgParser: clarify --stdin description
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Sep 6, 2023
1 parent dc3c435 commit c1843ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c1843ce

Please sign in to comment.