modified CLI to get options