summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/tftpy_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/tftpy_client.py b/bin/tftpy_client.py
index f253ee9..3cbae34 100644
--- a/bin/tftpy_client.py
+++ b/bin/tftpy_client.py
@@ -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,