~fgaz/minetest-declarative_chatcmd

a0d35adea47faaa0bfcd0d5a201c5d6f7c1186fc — Francesco Gazzetta 1 year, 11 months ago 9372065
Add note about args+named_args unification
1 files changed, 2 insertions(+), 0 deletions(-)

M test/example.lua
M test/example.lua => test/example.lua +2 -0
@@ 23,6 23,8 @@ example.example_command = {
    },
    bar = {
      description = "Subcommand bar description",
      -- MAYBE unify args and named_args (in lua tables can have both named and non-named stuff)
      --       note: it'd make named "1", "2"... arguments impossible (?)
      args = {
        {
          name = "arg1", -- optional