G
Guest
Hi,
I'm writing a program that should accept the following parameters:
XMLfile (required)
Logfile (required)
/A (append flag, optional)
/D 123 (delay value, optional, but # should follow /D immediately)
/V 123 (version number, optional, but # should follow /V immediately)
I want the user to have the capability of specifying the optional
parameters in any order (except the required ones - XMLfile and Logfile
which should be 1st and 2nd). What's a simple way of writing a parser
for this?
Thanks!
I'm writing a program that should accept the following parameters:
XMLfile (required)
Logfile (required)
/A (append flag, optional)
/D 123 (delay value, optional, but # should follow /D immediately)
/V 123 (version number, optional, but # should follow /V immediately)
I want the user to have the capability of specifying the optional
parameters in any order (except the required ones - XMLfile and Logfile
which should be 1st and 2nd). What's a simple way of writing a parser
for this?
Thanks!