24 lines
456 B
Nim
24 lines
456 B
Nim
import os
|
|
import strutils
|
|
import tables
|
|
import scoring
|
|
import geneticTools
|
|
import db_connector/db_sqlite
|
|
import ./main
|
|
|
|
proc getParamSwitches*() : Table[string, string] =
|
|
let params = commandLineParams()
|
|
|
|
for x in params:
|
|
if 2 > x.len:
|
|
continue
|
|
|
|
if x[0 .. 1] == "--":
|
|
let split = x.split("=")
|
|
if split.len == 2:
|
|
result[split[0]] = split[1]
|
|
else:
|
|
continue
|
|
else:
|
|
continue
|
|
echo getParamSwitches()
|