diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-31 11:08:43 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-31 11:08:43 -0700 |
commit | ee77705d60cd0a61d6fac8d1c03e6814da42b928 (patch) | |
tree | 09c0017316a58035ed1da7cc7840da7414fa4c09 /util/prosodyctl.lua | |
parent | a114b5700c4dafe05ab522b3261689fb114bfd0a (diff) | |
download | prosody-ee77705d60cd0a61d6fac8d1c03e6814da42b928.tar.gz prosody-ee77705d60cd0a61d6fac8d1c03e6814da42b928.zip |
util.prosodyctl: The check_flags function now considers that a module, if given, is specified at the penultimate argument it receives
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 274d611c..bf65e396 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -301,9 +301,9 @@ local function check_flags(arg) -- 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) |