From a83754a6c8aa7178009fc2d358ab9c17278e4178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhold=20F=C3=BCreder?= Date: Mon, 11 Sep 2017 15:04:15 +0200 Subject: [PATCH] Avoid info log 'Checking intern URLs only; use --check-extern to check extern URLs.' when solely calling 'linkchecker --version' Currently: $ linkchecker --version INFO linkcheck.cmdline 2017-09-11 12:46:55,167 MainThread Checking intern URLs only; use --check-extern to check extern URLs. LinkChecker 9.4 released xx.xx.xxxx Copyright (C) 2000-2014 Bastian Kleineidam --- linkchecker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkchecker b/linkchecker index 9e91fa51..9b5be4a0 100755 --- a/linkchecker +++ b/linkchecker @@ -425,6 +425,8 @@ if options.debug and not __debug__: # apply commandline options and arguments to configuration constructauth = False do_profile = False +if options.version: + print_version() if not options.warnings: config["warnings"] = options.warnings if options.externstrict: @@ -523,8 +525,6 @@ if options.timeout is not None: else: print_usage(_("Illegal argument %(arg)r for option %(option)s") % \ {"arg": options.timeout, "option": "'--timeout'"}) -if options.version: - print_version() if options.listplugins: print_plugins(config["pluginfolders"]) if options.verbose: