From 8b6a31e9632cb2c3ce43a1114fff25fb3f46499c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alve=20Svar=C3=A9n?= Date: Fri, 9 Oct 2020 19:22:00 +0200 Subject: [PATCH] Fixed some typos and added shellbang --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 main.py diff --git a/main.py b/main.py old mode 100644 new mode 100755 index df0df4c..0e535c4 --- a/main.py +++ b/main.py @@ -1,3 +1,5 @@ +#!/usr/bin/python + from sys import argv # Currently the only possible value @@ -52,7 +54,7 @@ def write_file(region_name: str, ip_address: str = "127.0.0.1", file_name: str = Example: ```py try: - writeFile("Example server", "169.0.0.1", port=12345)) + write_file("Example server", "127.0.0.1", port=12345)) print("Success!") except Exception as error: print(error) @@ -81,7 +83,7 @@ def content_from_stream(stream: bytearray) -> str: if __name__ == "__main__": if (len(argv) < 2): - print('Usage: python main.py "Server name" 169.0.0.1') + print('Usage: python main.py "Server name" 127.0.0.1') exit(1) print(f"Creating file using arguments {argv[1:]}") write_file(*argv[1:], log_bytes=True)