SWI "OS_ReadArgs".
Good luck wrangling with the explanation of the syntax string format,
though; it took me hours of experimentation to determine exactly what
each letter code did, and what they did when combined. Let me know if
you need help and I'll see if I can dig out my old notes.
--
__<^>__ "Your pet, our passion." - Purina
/ _ _ \ "Your potential, our passion." - Microsoft, a few months later
( ( |_| ) )
\_> <_/ ======================= Martin Bazley ==========================
> SWI "OS_ReadArgs".
>
> Good luck wrangling with the explanation of the syntax string format,
> though; it took me hours of experimentation to determine exactly what
> each letter code did, and what they did when combined. Let me know if
> you need help and I'll see if I can dig out my old notes.
Hi Martin.
Thanks. I did look at OS_ReadArgs, but it seemed to only support
parameters of the type "-<name>[ <value>]", so you couldn't use it
e.g. to parse the parameters of a command like "*copy <from> <to>".
In any case, I found that in my case, I'll manage with a simple way of
doing this, since it doesn't need to handle quoted strings.
Regards,
Terje