That's very context specific, how to handle the arguments, is it not?
I thought I'd divide the arguments into key/value pairs, where the seperator is a '=', arguments without assigned values (ie. no '=') would become a key where the value is an empty string. Other then that the arguments would be seperated by whitespace.
For example:
Code:Argument : (key, value) -------------------------------------------- first=one : ("first", "one") second = two : ("second", "two") -p : ("-p", "")
Last edited by nempo; 12-16-2007 at 12:24 PM. Reason: Fixed a small error.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law