File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ format filePath text = do
39
39
40
40
formatOrPassthrough :: Text -> Text
41
41
formatOrPassthrough text = do
42
- case format " stdin" text of
42
+ case format " stdin:nofilepath " text of
43
43
Right formatted -> formatted
44
44
Left _ -> text
45
45
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ run inputs flags =
121
121
TIO. putStrLn " --yes Reply 'yes' to all automated prompts."
122
122
TIO. putStrLn " --validate Check if files are formatted without changing them."
123
123
TIO. putStrLn " --stdin Read from stdin, output to stdout.\n "
124
- TIO. putStrLn " Note: All flags must use double dashes (--flag). Single dashes (-flag) are not supported.\n "
125
124
TIO. putStrLn " Examples:"
126
125
TIO. putStrLn " lamdera format Main.elm # formats Main.elm"
127
126
TIO. putStrLn " lamdera format Main.elm --output Main2.elm # formats Main.elm as Main2.elm"
@@ -166,7 +165,7 @@ expandPath path = do
166
165
167
166
formatText :: Format -> T. Text -> IO ()
168
167
formatText flags input =
169
- case ElmFormat. format " stdin" input of
168
+ case ElmFormat. format " stdin:nofilepath " input of
170
169
Right formatted ->
171
170
TIO. putStr formatted
172
171
Left err ->
You can’t perform that action at this time.
0 commit comments