Re: [Tutor] getopt matching incorrect options

2005-07-11 Thread David Rock
* Jay Loden <[EMAIL PROTECTED]> [2005-07-11 22:30]: > I have an app that takes a command line argument of -l or --list. It uses > the > getopt module to parse the arguments, and I just noticed that for some > reason, getopt is matching "--lis" or "--li" etc to "--list". (Code pasted in > below

[Tutor] getopt matching incorrect options

2005-07-11 Thread Jay Loden
I have an app that takes a command line argument of -l or --list. It uses the getopt module to parse the arguments, and I just noticed that for some reason, getopt is matching "--lis" or "--li" etc to "--list". (Code pasted in below) Is this normal behavior, and if so, is there any way to avoi

[Tutor] getopt matching incorrect options

2005-07-11 Thread Jay Loden
I have an app that takes a command line argument of -l or --list. It uses the getopt module to parse the arguments, and I just noticed that for some reason, getopt is matching "--lis" or "--li" etc to "--list". (Code pasted in below) Is this normal behavior, and if so, is there any way to avoid