summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-10 16:28:38 +0800
committerKeuin <[email protected]>2022-09-10 16:28:43 +0800
commitd5a5fa0acaeb3c85c2e33108bba723784167017a (patch)
treed108574a6661ff3fd11fe1de0bf0c2b125f70f3a /main.go
parent6b2aa054f7d6ea2c6f6dc2d2636901f61ecd8a51 (diff)
Bugfix: wrong error message when the program is run without any argument.
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 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
}