Replace optimist with minimist (depracated)