Hi all,

Suppose I want my executable to accept the following argument format:
Code:
exename -arg1 val1 -arg2 val2
where the arguments may be in any order; some required, some optional.

Currently I am using the args parameter of the Main method, joining it into a string, and using regular expressions to get the -k v pairs. This is rather ugly.
I'd like to know if there is a neater way of handling this.

Cheers

- P