diff options
author | Arthur She <arthur.she@linaro.org> | 2015-11-20 12:53:56 -0800 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2015-11-20 12:53:56 -0800 |
commit | e501ee2ac8f6657aa0fe428bee2eb5d1084fa95d (patch) | |
tree | 788467dd2e5cffd2046d5f2032960cd80c8925b4 | |
parent | c8ecc3dd1cb8d3c0f98e314fbbf0e2f055be5331 (diff) |
-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() |