summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/main.go b/client/main.go
index 707cf7e..e4a9f6b 100644
--- a/client/main.go
+++ b/client/main.go
@@ -3,6 +3,7 @@ package main
import (
"citrons.xyz/talk/tui"
"citrons.xyz/talk/client/clipboard"
+ "flag"
"time"
"fmt"
"os"
@@ -11,6 +12,12 @@ import (
var globalApp *application
func main() {
+ flag.Parse()
+ address := flag.Arg(0)
+ if address == "" {
+ address = "talk.citrons.xyz:27508"
+ }
+
go clipboard.DiscoverCommand()
err := tui.Start()
@@ -23,7 +30,7 @@ func main() {
fmt.Println("bye!")
}()
- globalApp = newApplication("alt.mondecitronne.com:27508")
+ globalApp = newApplication(address)
go globalApp.RunClient()
defer globalApp.Stop()