Moved options parser to a new class to make it work.