aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/main.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/main.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/main.go')
-rw-r--r--cmd/krino/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/krino/main.go b/cmd/krino/main.go
index 29da31a..c787cbf 100644
--- a/cmd/krino/main.go
+++ b/cmd/krino/main.go
@@ -110,7 +110,8 @@ func run(args []string, stdout, stderr io.Writer) int {
// -weird-dir" ambiguous between the two syntaxes.
for _, a := range rest {
if strings.HasPrefix(a, "-") {
- fmt.Fprintf(stderr, "krino: %s: flags must come before directory names\nrun 'krino -h' for help\n", a)
+ fmt.Fprintf(stderr, "krino: %s: flags must come before directory names\n", a)
+ fmt.Fprintln(stderr, "run 'krino -h' for help")
return 2
}
}
@@ -159,7 +160,8 @@ func parse(fs *flag.FlagSet, args []string, stdout, stderr io.Writer) (int, bool
fmt.Fprint(stdout, usage)
return 0, false
default:
- fmt.Fprintf(stderr, "krino: %v\nrun 'krino -h' for help\n", err)
+ fmt.Fprintf(stderr, "krino: %v\n", err)
+ fmt.Fprintln(stderr, "run 'krino -h' for help")
return 2, false
}
}