use optimist command parser.