# HG changeset patch # User João Duarte # Date 1564596523 25200 # Node ID d311168c71d1d5fa0bbe3426718167dbbfd0b8d1 # Parent dbd9880bf5c64dff37ddd78aec0d8d4656eb9bf0 util.prosodyctl: The check_flags function now considers that a module, if given, is specified at the penultimate argument it receives diff -r dbd9880bf5c6 -r d311168c71d1 util/prosodyctl.lua --- a/util/prosodyctl.lua Wed Jul 31 11:01:36 2019 -0700 +++ b/util/prosodyctl.lua Wed Jul 31 11:08:43 2019 -0700 @@ -301,9 +301,9 @@ -- There might not be any argument when the list command is calling this function if arg[1] and arg[1]:sub(1, #flag) == flag then local dir = arg[1]:match("=(.+)$") - return true, arg[2], dir; + return true, arg[#arg-1], dir; end - return false, arg[1] + return false, arg[#arg-1]; end local function call_luarocks(operation, mod, dir)