From 0d300509bdd7497fd376844b2326f5917636590e Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Tue, 2 Mar 2021 20:22:41 +0100 Subject: 2021-03-02 19:20:00 --- scripts/context/lua/mtx-context.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/context') diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 6c16f655c..38cb363bf 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -1694,6 +1694,9 @@ elseif getargument("purge") then elseif getargument("purgeall") then -- only when no filename given, supports --pattern scripts.context.purge(true,nil,true) +elseif getargument("pattern") then + environment.filenames = dir.glob(getargument("pattern")) + scripts.context.timed(scripts.context.autoctx) else application.help("basic") end -- cgit v1.2.3