vineeth wrote: > parser.add_option("-b", "--bytes", dest="bytes") This is an aside, but if you pass 'type="int"' to add_option, optparse will automatically convert it to an int, and (I think), give a more useful error message on failure. --