diff --git a/completions/attrib.lua b/completions/attrib.lua index d4da6c4..3246070 100644 --- a/completions/attrib.lua +++ b/completions/attrib.lua @@ -6,7 +6,7 @@ -------------------------------------------------------------------------------- local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("attrib.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("attrib.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/colortool.lua b/completions/colortool.lua index 6785f05..e7ae342 100644 --- a/completions/colortool.lua +++ b/completions/colortool.lua @@ -1,6 +1,6 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("colortool.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("colortool.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/curl.lua b/completions/curl.lua index bf89fe5..1c6aded 100644 --- a/completions/curl.lua +++ b/completions/curl.lua @@ -1,6 +1,6 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("curl.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("curl.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/grep.lua b/completions/grep.lua index 8ed4fd9..77d3d5e 100644 --- a/completions/grep.lua +++ b/completions/grep.lua @@ -1,6 +1,6 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("grep.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("grep.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/gsudo.lua b/completions/gsudo.lua index d354885..0bb93f8 100644 --- a/completions/gsudo.lua +++ b/completions/gsudo.lua @@ -1,6 +1,6 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_chaincommand then - print("gsudo.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("gsudo.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/less.lua b/completions/less.lua index f46771f..90aeb31 100644 --- a/completions/less.lua +++ b/completions/less.lua @@ -6,7 +6,7 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("less.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("less.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/make.lua b/completions/make.lua index f3e1645..17ac025 100644 --- a/completions/make.lua +++ b/completions/make.lua @@ -2,14 +2,13 @@ -- set %INCLUDE_PATHLIKE_MAKEFILE_TARGETS% to any non-empty string. local clink_version = require('clink_version') - -require('arghelper') - if not clink_version.supports_argmatcher_delayinit then - print("make.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("make.lua argmatcher requires a newer version of Clink; please upgrade.") return end +require('arghelper') + -- Table of special targets to always ignore. local special_targets = { ['.PHONY'] = true, diff --git a/completions/premake5.lua b/completions/premake5.lua index cc8e807..a068038 100644 --- a/completions/premake5.lua +++ b/completions/premake5.lua @@ -16,7 +16,7 @@ end local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("premake5.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("premake5.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/robocopy.lua b/completions/robocopy.lua index f98b515..ab72ba0 100644 --- a/completions/robocopy.lua +++ b/completions/robocopy.lua @@ -4,7 +4,7 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("robocopy.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("robocopy.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/sed.lua b/completions/sed.lua index 9fdfc52..1ce81ce 100644 --- a/completions/sed.lua +++ b/completions/sed.lua @@ -1,6 +1,6 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("sed.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("sed.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/sudo.lua b/completions/sudo.lua index 4358bb3..27e99c5 100644 --- a/completions/sudo.lua +++ b/completions/sudo.lua @@ -1,6 +1,6 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_chaincommand then - print("sudo.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("sudo.lua argmatcher requires a newer version of Clink; please upgrade.") return end diff --git a/completions/xcopy.lua b/completions/xcopy.lua index 3e14ca3..ebe3a90 100644 --- a/completions/xcopy.lua +++ b/completions/xcopy.lua @@ -1,6 +1,6 @@ local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then - print("xcopy.lua argmatcher requires a newer version of Clink; please upgrade.") + log.info("xcopy.lua argmatcher requires a newer version of Clink; please upgrade.") return end