command line "shell"
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?
I'm not exactly sure what you are asking, but here goes. What I would do with the shell is make a loop that continues looping until valid input is given. You then parse the input and determine what are the flags, data, and file name. The actual parsing depends on what time of way the input is divided and entered.
Hope that helps.
sean345, that what i want to do, any ideas on how. my way has bugs and just doesnt seem right, there must be some unofficial standard for this kind of thing.
Try a board search, this is is quite a popular topic.