morden wrote: > > So, my question is: > how to make the code a bit less igly > and make it take arguments in format -Bfoo in addition to -B foo? Use the getopt module? Much simpler, handles the above request.