feat: update usage output

- add custom usage message
- include instructions for WebSocket client connection

🤖
This commit is contained in:
Sebastian Mark 2024-11-18 08:57:32 +01:00
parent 31179d4af4
commit 718b6ac4cd

View file

@ -24,6 +24,13 @@ var (
// Start the pomodoro server
func Start() {
// Update usage output
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s:\n", "GoTomato")
flag.PrintDefaults()
fmt.Println("\nPoint your client to 'ws://<listenAddress>:<listenPort>/ws'")
}
flag.Parse()
// show server and protocl version and exit