Argument parsing. Initial path preparing