replace optimist with minimist