X-Git-Url: http://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/0266d1d4c934aa9e29769dcb0d5e3d21bda282cd..a2d28598f44142969997ae56f6bd684c54d95e0b:/src/nimcoon.nim diff --git a/src/nimcoon.nim b/src/nimcoon.nim index 4f75d82..45fca17 100644 --- a/src/nimcoon.nim +++ b/src/nimcoon.nim @@ -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()