summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2015-11-20 12:53:56 -0800
committerArthur She <arthur.she@linaro.org>2015-11-20 12:53:56 -0800
commite501ee2ac8f6657aa0fe428bee2eb5d1084fa95d (patch)
tree788467dd2e5cffd2046d5f2032960cd80c8925b4
parentc8ecc3dd1cb8d3c0f98e314fbbf0e2f055be5331 (diff)
Do nothing while '-h' in the argv.HEADmaster
-rwxr-xr-xcheck-link.py3
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()