updated the CLI to gather and parse its options