aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorHarvey Tindall <hrfee@protonmail.ch>2020-11-16 21:59:31 +0000
committerHarvey Tindall <hrfee@protonmail.ch>2020-11-16 21:59:31 +0000
commita84ae6bd5b02aac902b8e335927cd5c1cb3261a1 (patch)
tree4e660fcad5cd39b19bbb2f34fbbc822791e9c03e /main.go
parent78ce37db9f13c5439b30663a3c54b283bd3f539c (diff)
downloadwaybar-mpris-a84ae6bd5b02aac902b8e335927cd5c1cb3261a1.tar.gz
waybar-mpris-a84ae6bd5b02aac902b8e335927cd5c1cb3261a1.zip
fix help output
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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)