commit 923b8763f46c7873f409170b5f68c18c17b106ae
parent 3f946578cc165618c765c194b6d24399268035bd
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date: Mon, 2 Oct 2023 18:48:24 -0300
Add where option to record command
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/absurdor b/absurdor
@@ -104,6 +104,8 @@ local cmd_press = cmd_record:command("push", "A push of The Boulder")
cmd_press:argument("who", "Name of the player")
cmd_press:argument("when", "Timestamp of boulder push")
:convert(maildate)
+cmd_press:option("-m", "Message ID where push happened")
+ :target("where")
parser:command("log", "Display log")
local args = parser:parse()
@@ -223,7 +225,8 @@ elseif args.command == "record" then
table.insert(log, {
when = args.when,
what = "push",
- who = args.who
+ who = args.who,
+ where = args.where
})
end
elseif args.command == "log" then