From a84ae6bd5b02aac902b8e335927cd5c1cb3261a1 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Mon, 16 Nov 2020 21:59:31 +0000 Subject: fix help output --- go.mod | 2 +- go.sum | 2 ++ main.go | 2 +- waybar-mpris | Bin 1005628 -> 1005644 bytes 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 42086c6..b6cdd07 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/godbus/dbus/v5 v5.0.3 github.com/hpcloud/tail v1.0.0 github.com/spf13/pflag v1.0.5 - golang.org/x/sys v0.0.0-20200928205150-006507a75852 // indirect + golang.org/x/sys v0.0.0-20201116194326-cc9327a14d48 // indirect gopkg.in/fsnotify.v1 v1.4.7 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect ) diff --git a/go.sum b/go.sum index 5974bd1..af5c866 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= golang.org/x/sys v0.0.0-20200928205150-006507a75852 h1:sXxgOAXy8JwHhZnPuItAlUtwIlxrlEqi28mKhUR+zZY= golang.org/x/sys v0.0.0-20200928205150-006507a75852/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201116194326-cc9327a14d48 h1:AYCWBZhgIw6XobZ5CibNJr0Rc4ZofGGKvWa1vcx2IGk= +golang.org/x/sys v0.0.0-20201116194326-cc9327a14d48/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= diff --git a/main.go b/main.go index c2e7cbb..f6caaee 100644 --- a/main.go +++ b/main.go @@ -380,7 +380,6 @@ func main() { } mw := io.MultiWriter(logfile, os.Stdout) log.SetOutput(mw) - os.Stderr = logfile flag.StringVar(&PLAY, "play", PLAY, "Play symbol/text to use.") flag.StringVar(&PAUSE, "pause", PAUSE, "Pause symbol/text to use.") flag.StringVar(&SEP, "separator", SEP, "Separator string to use between artist, album, and title.") @@ -393,6 +392,7 @@ func main() { flag.StringVar(&command, "send", "", "send command to already runnning waybar-mpris instance. (options: "+strings.Join(COMMANDS, "/")+")") flag.Parse() + os.Stderr = logfile if command != "" { conn, err := net.Dial("unix", SOCK) diff --git a/waybar-mpris b/waybar-mpris index b8e0ce8..ec8ba5d 100755 Binary files a/waybar-mpris and b/waybar-mpris differ -- cgit v1.2.3