added missing option parsing line. moved mode check above compilation step.
added missing option parsing line. moved mode check above compilation step.

bubbleboy14/cantools,bubbleboy14/cantools,bubbleboy14/cantools,bubbleboy14/cantools