feat: add client instructions to usage output
- add custom usage message
- include instructions for WebSocket client connection
🤖
This commit is contained in:
parent
31179d4af4
commit
256837c130
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue