X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/900ec0e7dad7a913190fcef9016e53495de9bdf8..d9fddc0f506eb4ead7049f5638674b2b8773fcaa:/main.go?ds=sidebyside diff --git a/main.go b/main.go index f4f09c4..e25e7f3 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,4 @@ +// Command onechat runs the agent daemon and its terminal client. package main import ( @@ -41,7 +42,7 @@ func run() error { case len(args) == 1 && (args[0] == "help" || args[0] == "--help" || args[0] == "-h"): _, err := fmt.Print(usage) if err != nil { - return err + return fmt.Errorf("write command help: %w", err) } case len(args) == 1 && args[0] == "login": err := chatgptLogin(ctx, os.Stdout)