Re: Need help with OptionParser

2008-03-25 Thread Stargaming
On Tue, 25 Mar 2008 05:42:03 -0700, hellt wrote: [snip] > usage = "usage: %prog [options]" > parser = OptionParser(usage) > parser.add_option("-f", "--file", dest="filename", > help="executable filename", > metavar="FILE") > parser.add_option("-b"

Re: Need help with OptionParser

2008-03-25 Thread hellt
On 25 мар, 15:42, hellt <[EMAIL PROTECTED]> wrote: > today i've decided to use optionparser instead of GetOpt > > and unfortunately i've got an error which i cant handle > > my pice of code: > > from optparse import OptionParser > > def main(): > usage = "usage: %prog [options]" > parser =

Need help with OptionParser

2008-03-25 Thread hellt
today i've decided to use optionparser instead of GetOpt and unfortunately i've got an error which i cant handle my pice of code: from optparse import OptionParser def main(): usage = "usage: %prog [options]" parser = OptionParser(usage) parser.add_option("-f", "--file", dest="filen