From d5a5fa0acaeb3c85c2e33108bba723784167017a Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 10 Sep 2022 16:28:38 +0800 Subject: Bugfix: wrong error message when the program is run without any argument. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 2b22cfc..523e348 100644 --- a/main.go +++ b/main.go @@ -77,7 +77,7 @@ func getTasks() (tasks []recording.TaskConfig) { fromCli := len(*rooms) > 0 fromFile := *configFilePtr != "" - if fromCli == fromFile { + if fromCli && fromFile { err = fmt.Errorf("cannot specify room id argument and config file at the same time") return } -- cgit v1.2.3