replace optimist by minimist