From 2705c2882df7895847edce452b55fe916eb148ba Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 18 May 2026 22:32:12 +0200 Subject: [PATCH] Change flag.Usage Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- cmd/spilltea/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/spilltea/main.go b/cmd/spilltea/main.go index b0860ad..2b03d5d 100644 --- a/cmd/spilltea/main.go +++ b/cmd/spilltea/main.go @@ -32,6 +32,11 @@ func main() { flagProject = flag.StringP("project", "P", "", `project name to open directly, or "tmp" for a temporary session`) flagAddDefaultPlugins = flag.Bool("add-default-plugins", false, "copy built-in example plugins into the plugins dir and exit") ) + flag.CommandLine.SetOutput(os.Stdout) + flag.Usage = func() { + fmt.Println("Usage: spilltea [flags]\n") + flag.PrintDefaults() + } flag.Parse() if *flagVersion {