We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f55c7ad + bdf60fd commit 0f59f83Copy full SHA for 0f59f83
1 file changed
one.py
@@ -13,12 +13,12 @@ def warn_md5():
13
os.delete(filename)
14
15
16
-modes = ['transmit', 'download','whomadethis?']
+modes = ['transmit', 'receive','whomadethis?']
17
if len(sys.argv) == 1:
18
print("Usage: transmit (ip-to-transmit-to) (file-to-transmit)")
19
sys.exit()
20
if sys.argv[1] not in modes:
21
- print("Invalid mode (Transmit/Download)")
+ print(f"Invalid mode {sys.argv[1]} (Transmit/Receive)")
22
23
24
if sys.argv[1] == 'transmit':
@@ -65,7 +65,7 @@ def warn_md5():
65
s.sendall(bytes_read)
66
progress.update(len(bytes_read))
67
s.close()
68
-elif sys.argv[1] == 'download':
+elif sys.argv[1] == 'receive':
69
70
SERVER_HOST = '0.0.0.0'
71
SERVER_PORT = 9001
0 commit comments