]> njoseph.me Git - nimcoon.git/blobdiff - src/nimcoon.nim
download and fullScreen are imcompatible options
[nimcoon.git] / src / nimcoon.nim
index a0bb93deb2ed9ac8a17dad9c5e440abf24255873..56e68674dcc2f40cf518b97597d8ffb4a28f7c3a 100644 (file)
@@ -32,7 +32,7 @@ proc parseArguments(): CommandLineOptions =
 
 proc isValidOptions*(options: Options): bool =
   # Check for invalid combinations of options
-  var invalidCombinations = [("musicOnly", "fullScreen")]
+  var invalidCombinations = [("musicOnly", "fullScreen"), ("download", "fullScreen")]
   for combination in invalidCombinations:
     if options[combination[0]] and options[combination[1]]:
      stderr.writeLine fmt"Incompatible options provided: {combination[0]} and {combination[1]}"