diff options
-rwxr-xr-x | check-link.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/check-link.py b/check-link.py index d09fd06..17f4492 100755 --- a/check-link.py +++ b/check-link.py @@ -8,6 +8,7 @@ import sys OUTPUT_FILE = "./link_check_result.txt" argv = sys.argv +# Replace command to linkchecker argv[0] = 'linkchecker' if '-F' in argv: argv[argv.index('-F')+1] = "text" @@ -20,6 +21,8 @@ ret = subprocess.call(argv) if ret == 2: exit(1) +if '-h' in argv: + exit(0) # Have the final output of linkchecker ifile = open('./linkchecker-out.txt', 'r') rest_str = ifile.read() |