Added correct usage text
This commit is contained in:
1 parent
cf585c6368
commit
2c82b9ffd1
1 file changed
+2
-1
@@ -83,7 +83,8 @@ def content_from_stream(stream: bytearray) -> str:
|
||||
|
||||
if __name__ == "__main__":
|
||||
if (len(argv) < 2):
|
||||
print('Usage: python main.py "Server name" 127.0.0.1')
|
||||
print('Usage: python main.py <name> [ip-address] [file-name] [port]')
|
||||
print('Example: python main.py "Server name" 127.0.0.1')
|
||||
exit(1)
|
||||
print(f"Creating file using arguments '{', '.join(argv[1:])}'")
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user