Mercurial > prosody-hg
view util/xpcall.lua @ 13160:4ee9a912ceea
util.argparse: Add support for repeatable parameters
These are gathered into arrays
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 05 Jan 2022 04:46:27 +0100 |
| parents | d10957394a3c |
| children |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"prosody.util.compat".xpcall; end return { xpcall = xpcall; };
