aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/quarg/main.py
diff options
context:
space:
mode:
authorWolfgang Müller2021-05-01 15:58:35 +0200
committerWolfgang Müller2021-05-01 17:41:47 +0200
commitc4f5dbab6e377fe7ee6040c3d5038157b58db621 (patch)
treeb1e924a43b2a362a3e62d2d3cfd8eb6c845d0564 /quarg/main.py
parent60c6ffc224cca6bedfccfe2476d9e7294e6d7253 (diff)
downloadquarg-c4f5dbab6e377fe7ee6040c3d5038157b58db621.tar.gz
actions: Allow specifying a unit suffix for --around
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.
Diffstat (limited to 'quarg/main.py')
-rw-r--r--quarg/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/quarg/main.py b/quarg/main.py
index 083166c..82474b8 100644
--- a/quarg/main.py
+++ b/quarg/main.py
@@ -30,7 +30,7 @@ matchers.add_argument('-f', action=actions.ParseMessageFlag, dest='msgflag', hel
date_matchers = cli.add_argument_group('matching message timestamps')
date_matchers.add_argument('--after', action=actions.ParseDate, metavar='DATE', help='sent after this date')
date_matchers.add_argument('--before', action=actions.ParseDate, metavar='DATE', help='sent before this date')
-date_matchers.add_argument('--around', action=actions.ParseAround, metavar='DATE[/RANGE]', help='sent RANGE hours before or after this date')
+date_matchers.add_argument('--around', action=actions.ParseAround, metavar='DATE[/RANGE]', help='sent RANGE hours/minutes before or after this date')
joined_group = matchers.add_mutually_exclusive_group()
joined_group.add_argument('--joined', default=None, action='store_true', dest='joined', help='match buffers which are currently joined')