
April 4th, 2004, 10:22 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Location: London, England
|
|
|
As far as I can see, your code is correct. You say you are you having problems getting it working - what is it doing (or not doing)?
A couple of suggestions:
1) if you wrap your code in the post with [CODE] tags then it will be easier for the rest of us to read.
2) You use the name 'args' for the non-option parameters returned from the getopt function, and 'arg' for the value of the option. These could be easily confused, since they are quite different things. I would suggest renaming 'arg' to 'value' or 'optionValue' or something similar.
Dave - The Developers' Coach
|