swapped out optimist to use minimist