X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/b44b64940a9a5708a58decce73634c81ef0b9783..86e6cb72964db0443c6b5527892f49721079f72a:/src/nimcoon.nim diff --git a/src/nimcoon.nim b/src/nimcoon.nim index 20b9280..265409d 100644 --- a/src/nimcoon.nim +++ b/src/nimcoon.nim @@ -31,11 +31,11 @@ proc parseArguments(): CommandLineOptions = proc isValidOptions*(options: Options): bool = # Check for invalid combinations of options var invalidCombinations = [("musicOnly", "fullScreen"), ("download", "fullScreen")] + result = true for combination in invalidCombinations: if options[combination[0]] and options[combination[1]]: stderr.writeLine fmt"Incompatible options provided: {combination[0]} and {combination[1]}" - return false - true + result = false proc main() = let