feat: update usage output
- add custom usage message
- include instructions for WebSocket client connection
🤖
This commit is contained in:
parent
9feaa9a363
commit
d21a74388d
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