From 58ca87ee67262101fb3fa3cf7b855dc4443f90e9 Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 29 Jul 2021 20:32:06 +0530 Subject: Reformat code, add version sub --- lib/Lacerta/CLI.rakumod | 102 ++++++++++++++++++++++++------------------------ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/lib/Lacerta/CLI.rakumod b/lib/Lacerta/CLI.rakumod index 3ce42b0..cc74879 100644 --- a/lib/Lacerta/CLI.rakumod +++ b/lib/Lacerta/CLI.rakumod @@ -2,88 +2,88 @@ use Terminal::Spinners; use Text::Table::Simple; #| parses WhatsApp export -unit sub MAIN ( +multi sub MAIN ( Str $input where *.IO.f = "input", #= input log file to parse Str $profile-name = "Andinus", #= your WhatsApp profile name -); +) is export { + #| Parses the WhatsApp logs. + grammar WhatsApp { + token TOP { || } -#| Parses the WhatsApp logs. -grammar WhatsApp { - token TOP { || } + token Notice { ', '