Fix typo.

This commit is contained in:
Yuxin Wang 2018-10-03 17:10:21 -04:00
parent 5d90c2ec40
commit 1a66e36374

View file

@ -58,7 +58,7 @@ class PeerTerminal(cmd.Cmd):
print(tabulate(file_list, headers=headers))
def do_download(self, arg):
filename, destionation, *_ = arg.split(' ')
filename, destination, *_ = arg.split(' ')
def progress(current, total):
import time
@ -90,6 +90,7 @@ class PeerTerminal(cmd.Cmd):
print('Downloading {} ['.format(filename) + 30 * '=' + '>] 100%')
_, message = self._peer.download(filename, destionation, progress)
_, message = self._peer.download(filename, destination, progress)
print(message)
def do_exit(self, arg):