diff options
Diffstat (limited to 'yazi-enter.yazi')
| -rw-r--r-- | yazi-enter.yazi/main.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yazi-enter.yazi/main.lua b/yazi-enter.yazi/main.lua index 55a58bc..f4f4333 100644 --- a/yazi-enter.yazi/main.lua +++ b/yazi-enter.yazi/main.lua @@ -25,6 +25,14 @@ local function normalize_options(args) normalize_boolean("insensitive", args.insensitive) end +local function validate_argument_keys(args) + for key in pairs(args) do + if type(key) == "number" and key ~= 1 then + error(("yazi-enter: unexpected positional argument at index %s"):format(key), 0) + end + end +end + local commit = ya.sync(function() return 0 end) |