diff --git a/html-preprocessor b/html-preprocessor
index 4ab0e0b..46ad756 100755
--- a/html-preprocessor
+++ b/html-preprocessor
@@ -521,9 +521,9 @@ def missing_arg(arg):
def help():
helpstring = """Synopsis:
Inject into :
- python3 html-inect.py --target --output [OPTIONS]
+ python3 html-inect.py --input --output [OPTIONS]
\nCommand line options:
- --target path to the target file
+ --input path to the input file
--output output to this file instead of overwriting target
--inplace edit target file in place
--var = set the value of a variable. Can be used multiple times
@@ -543,7 +543,7 @@ if __name__ == "__main__":
inplace = False
i = 1
while i in range(1, len(argv)):
- if argv[i] == "--target":
+ if argv[i] == "--input":
if len(argv) > i + 1: target_path = argv[i+1].strip(" ")
else: missing_arg_val(argv[i])
i += 1
@@ -578,7 +578,7 @@ if __name__ == "__main__":
error(f"Invalid argument: {argv[i]}")
i += 1
# sanity checks
- if not target_path: missing_arg("--target")
+ if not target_path: missing_arg("--input")
if not os.path.isfile(target_path): error(f"Invalid target: {target_path} (does not exist)")
if inplace: output_path = target_path
if not output_path: