refactor Main#parseLine