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 9feaa9a363
commit d21a74388d

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