]> njoseph.me Git - nimcoon.git/blobdiff - src/nimcoon.nim
Fix all recent bugs. Shift to Invidious API.
[nimcoon.git] / src / nimcoon.nim
index 4f75d826f6d640fa091949edbce364370c13addf..45fca1748c1f280e51c19dd5b65f327c4c441035 100644 (file)
@@ -12,9 +12,16 @@ import
 
 
 proc parseArguments(): CommandLineOptions =
+
   var
     searchQuery = ""
-    options = to_table({"musicOnly": false, "feelingLucky": false, "fullScreen": false, "download": false, "non-interactive": false})
+    options = to_table({
+      "musicOnly": false,
+      "feelingLucky": false,
+      "fullScreen": false,
+      "download": false,
+      "non-interactive": false
+    })
 
   for kind, key, value in getopt():
     case kind
@@ -45,6 +52,7 @@ proc isValidOptions*(options: Options): bool =
      stderr.writeLine fmt"Incompatible options provided: {combination[0]} and {combination[1]}"
      result = false
 
+
 proc main() =
   let
     player = selectMediaPlayer()