OK, so here's the deal. I'm writing a text-based program that accepts either single-character inputs, or multiple inputs from its own prompt. So, the following inputs are valid:

Code:
PROGRAM_PROMPT>  e

...and

PROGRAM_PROMPT>  d 20 3
So, I'd like to be able to accept single-character, as well as single-character/int/int input. This should act kind of like command line arguments, but it's within the program. How do I go about doing this?