diff --git a/src/template.jl b/src/template.jl index c079f75..e3eac7b 100644 --- a/src/template.jl +++ b/src/template.jl @@ -86,7 +86,9 @@ function Template(::Val{false}; kwargs...) end end - isempty(kwargs) || @warn "Unrecognized keywords were supplied" kwargs + if !isempty(kwargs) + @warn "Unrecognized keywords were supplied, see the documentation for help" kwargs + end t = Template(authors, dir, host, julia, plugins, user) foreach(p -> validate(p, t), t.plugins) diff --git a/test/template.jl b/test/template.jl index db47e13..bea4705 100644 --- a/test/template.jl +++ b/test/template.jl @@ -46,7 +46,7 @@ @testset "Unsupported keywords warning" begin @test_logs tpl() - @test_logs (:warn, "Unrecognized keywords were supplied") tpl(; x=1, y=2) + @test_logs (:warn, r"Unrecognized keywords were supplied") tpl(; x=1, y=2) end end