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"
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 =
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