im working on a program that will take in put from the command line or a prompt(not both). i have the command line working fine but i dont know of a good way of doing a "shell". i want the shell to work like the command line options so you could do
<flag> <data> <filename>
any ideas on a good way of doing this?