getopt and options with multiple arguments

pinkfloydhomer at pinkfloydhomer at
Mon Dec 19 11:29:41 CET 2005

I want to be able to do something like: * -o outputfile

and then have the shell expand the * as usual, perhaps to hundreds of
filenames. But as far as I can see, getopt can only get one argument
with each option. In the above case, there isn't even an option string
before the *, but even if there was, I don't know how to get getopt to
give me all the expanded filenames in an option.

Help! :)


More information about the Python-list mailing list