Fixed handling of port

git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@17 63283fd4-ec1e-0410-9879-cb7f675518da
master
msoulier 2006-10-05 16:38:33 +00:00
parent cb75a4b281
commit e771f670fb
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ def main():
dest='blocksize',
help='udp packet size to use (default: 512)',
default=512)
# FIXME - default should be same as --filename
parser.add_option('-o',
'--output',
action='store',
@ -57,7 +58,7 @@ def main():
tftp_options['blksize'] = int(options.blocksize)
tclient = tftpy.TftpClient(options.host,
options.port,
int(options.port),
tftp_options)
tclient.download(options.filename,