handle command line args with optimist

This is just a simple switch to optimist, no extra parameters yet.