summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/tasksamurai/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/tasksamurai/main.go b/cmd/tasksamurai/main.go
index 2238c82..8329fa1 100644
--- a/cmd/tasksamurai/main.go
+++ b/cmd/tasksamurai/main.go
@@ -13,6 +13,7 @@ import (
func main() {
debugLog := flag.String("debug-log", "", "path to debug log file")
+ browserCmd := flag.String("browser-cmd", "firefox", "command used to open URLs")
flag.Parse()
if err := task.SetDebugLog(*debugLog); err != nil {
@@ -20,7 +21,7 @@ func main() {
os.Exit(1)
}
- m, err := ui.New(flag.Args())
+ m, err := ui.New(flag.Args(), *browserCmd)
if err != nil {
fmt.Fprintln(os.Stderr, "failed to load tasks:", err)
os.Exit(1)