Skip to content

Commit ff19cf5

Browse files
committed
CLI: Log always to STDERR
1 parent fa16390 commit ff19cf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/cli/src/main/scala/CommandLineApp.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ object VcpkgCLI extends VcpkgPluginImpl, VcpkgPluginNativeImpl:
205205
import Options.*
206206

207207
def main(args: Array[String]): Unit =
208+
scribe.Logger.root
209+
.clearHandlers()
210+
.withHandler(writer = scribe.writer.SystemErrWriter)
211+
.replace()
208212
opts.parse(args) match
209213
case Left(help) =>
210214
val (modified, code) =
@@ -287,5 +291,7 @@ object VcpkgCLI extends VcpkgPluginImpl, VcpkgPluginNativeImpl:
287291
result.filter((k, v) => allDeps.contains(k))
288292
).foreach(println)
289293
end match
294+
end match
295+
end main
290296

291297
end VcpkgCLI

0 commit comments

Comments
 (0)