aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/common.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 22:31:12 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 22:31:12 +0200
commita91b713dcec4d17f76155f0cd6b26903c59b9c19 (patch)
tree44b1354e152c71a978738ee6ec47164ccef10b81 /cmd/krino/common.go
parentc03a72f1d7b598c1fe8fd01bb1f5bbfbd0256313 (diff)
downloadkrino-a91b713dcec4d17f76155f0cd6b26903c59b9c19.tar.gz
krino-a91b713dcec4d17f76155f0cd6b26903c59b9c19.zip
plan 10: stderr messages cannot be split by quoted newlines; config paths escaped; krino new refuses control characters; independent terminal oracle
Diffstat (limited to 'cmd/krino/common.go')
-rw-r--r--cmd/krino/common.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/krino/common.go b/cmd/krino/common.go
index a9c92f3..15c32f6 100644
--- a/cmd/krino/common.go
+++ b/cmd/krino/common.go
@@ -55,7 +55,8 @@ func mainFile(g *globals) string {
// usageError reports a command-line mistake and returns exit status 2.
func usageError(stderr io.Writer, msg string) int {
- fmt.Fprintf(stderr, "krino: %s\nrun 'krino -h' for help\n", msg)
+ fmt.Fprintf(stderr, "krino: %s\n", msg)
+ fmt.Fprintln(stderr, "run 'krino -h' for help")
return 2
}