]> git.0d.be Git - barnard.git/blobdiff - main.go
add cmdline argument to start in a specific channel
[barnard.git] / main.go
diff --git a/main.go b/main.go
index 7a779d55c4cb62055a763ca1907d3f6f61900e88..bbe84fa14815b4d43e54a25070547b41d96ce8dd 100644 (file)
--- a/main.go
+++ b/main.go
@@ -18,6 +18,7 @@ func main() {
        password := flag.String("password", "", "the password of the server")
        insecure := flag.Bool("insecure", false, "skip server certificate verification")
        certificate := flag.String("certificate", "", "PEM encoded certificate and private key")
+       channel := flag.String("channel", "", "initial channel")
 
        flag.Parse()
 
@@ -25,6 +26,7 @@ func main() {
        b := Barnard{
                Config:  gumble.NewConfig(),
                Address: *server,
+               DefaultChannel: *channel,
        }
 
        b.Config.Username = *username