File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ def warn_md5():
1313 os .delete (filename )
1414
1515
16- modes = ['transmit' , 'download ' ,'whomadethis?' ]
16+ modes = ['transmit' , 'receive ' ,'whomadethis?' ]
1717if len (sys .argv ) == 1 :
1818 print ("Usage: transmit (ip-to-transmit-to) (file-to-transmit)" )
1919 sys .exit ()
2020if sys .argv [1 ] not in modes :
21- print ("Invalid mode (Transmit/Download )" )
21+ print (f "Invalid mode { sys . argv [ 1 ] } (Transmit/Receive )" )
2222 sys .exit ()
2323
2424if sys .argv [1 ] == 'transmit' :
@@ -30,7 +30,7 @@ def warn_md5():
3030 print ('Usage: download' )
3131if sys .argv [1 ] == 'whomadethis?' :
3232 print (pyfiglet .figlet_format ("A Programmer" ))
33- sys .exit ()
33+ sys .exit ()
3434if sys .argv [1 ] == 'transmit' :
3535 SEP = "<SEP>"
3636 BUFFER_SIZE = 4096
@@ -65,7 +65,7 @@ def warn_md5():
6565 s .sendall (bytes_read )
6666 progress .update (len (bytes_read ))
6767 s .close ()
68- elif sys .argv [1 ] == 'download ' :
68+ elif sys .argv [1 ] == 'receive ' :
6969
7070 SERVER_HOST = '0.0.0.0'
7171 SERVER_PORT = 9001
You can’t perform that action at this time.
0 commit comments