I'm having a problem with parsing optional flags inside tmda-address. If
I mark a flag as taking an argument (i.e. "m:" for short options, and
"map=" for long), it will consume following flags when using
getopt.gnu_getopt() if no argument is provided. When using
getopt.getopt(), I just get an exception raised, since I've defined a
required argument and haven't provided one.

Either way, I'm not getting the behavior that I want, which is a default
value if a flag is given with no argument. I noticed that there's some
additional code for the -d/--dated flags that is (presumably) handling
this, but I couldn't really figure out what was going on under the hood.

Is there an easier way to do this?

-- 
Find my Techno-Geek Journal at http://www.codegnome.org/geeklog/
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to