aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/quarg/main.py (unfollow)
Commit message (Collapse)AuthorLines
2021-05-01actions: Allow specifying a unit suffix for --aroundWolfgang Müller-1/+1
Up until now it was only possible to give --around a range specified in hours. Since most discussions on IRC tend not to last for multiple hours, and one may only be interested in a few minutes of logs, this commit adds the ability to specify a unit suffix that takes either 'm' for minutes or 'h' for hours. If it is missing, 'h' is assumed.
2021-05-01main: Improve help messageWolfgang Müller-19/+21
Group message matching into two main parts (context and timestamps) and simplify the help text for each option. Rename 'query' to 'keyword' to avoid confusion with SQL queries and IRC queries. Additionally, change some option flags to better communicate the type of option (upper-case ones are used less frequently) or to make sure no future option clashes with a less-frequently used one.
2021-04-29Rename 'prefix' to 'umode'Wolfgang Müller-2/+2
Whilst still not perfect, 'umode' signals more closely what this option does. We do not plan to add matching on channel modes, so -m should be fine here. The original name for this option came from the column in the backlog table, 'senderprefixes'.
2021-04-29main: Adjust help message for -u to match the restWolfgang Müller-1/+1
2021-04-28filters: Rename time_from and time_toWolfgang Müller-2/+2
These make more sense and are clearer if they're named after the command line arguments that trigger them.
2021-04-28main: Make --around mutually exclusive with either --after or --beforeWolfgang Müller-2/+6
Using --around does not make much sense if there is also a match on --after or --before, since the range in --around would most certainly take precedence. Disallow this behaviour.
2021-04-28main: Make --joined and --no-joined mutually exclusiveWolfgang Müller-3/+4
Sadly we can not yet rely on BooleanOptionalAction, since that was only added in Python 3.9. Also remove the FIXME note, it seems that boolean options like this trigger a standard default setting with argparse.
2021-04-28Move Actions to their own fileWolfgang Müller-68/+8
2021-04-28Split errx and parse_isodate out into utils.pyWolfgang Müller-14/+1
We're going to need this for an upcoming commit that moves all argparse.Action classes to its own file.
2021-04-28main: Improve readability of collect_predicatesWolfgang Müller-10/+19
Instead of adding another indentation level, exit early if a value or a key can be ignored.