mu-cfind: re-enable --after option

It was still there, but disabled.

Fixes #2470.
This commit is contained in:
Dirk-Jan C. Binnema 2023-04-08 20:48:46 +03:00
parent 2285355374
commit 0ab2371c5c
2 changed files with 12 additions and 8 deletions

View File

@ -70,15 +70,15 @@ should only apply to name fields.
addresses was seen in one of the address fields; this is to exclude addresses
only seen in mailing-list messages. See the ~--my-address~ parameter to *mu init*.
# ** --after=<timestamp> only show addresses last seen after
# =<timestamp>=. =<timestamp>= is a UNIX *time_t* value, the number of
# seconds since 1970-01-01 (in UTC).
** --after=<timestamp> only show addresses last seen after
=<timestamp>=. =<timestamp>= is a UNIX *time_t* value, the number of
seconds since 1970-01-01 (in UTC).
# From the command line, you can use the *date* command to get this value. For
# example, only consider addresses last seen after 2009-06-01, you could specify
# #+begin_example
# --after=`date +%s --date='2009-06-01'`
# #+end_example
From the command line, you can use the *date* command to get this value. For
example, only consider addresses last seen after 2020-06-01, you could specify
#+begin_example
--after=`date +%s --date='2020-06-01'`
#+end_example
#+include: "muhome.inc" :minlevel 2

View File

@ -191,6 +191,10 @@ sub_cfind(CLI::App& sub, Options& opts)
"Regular expression pattern to match");
sub.add_flag("--personal,-p", opts.cfind.personal,
"Only show 'personal' contacts");
sub.add_option("--after", opts.cfind.after,
"Only show results after some timestamps")
->type_name("<time_t>")
->check(CLI::PositiveNumber);
sub.add_option("--maxnum,-n", opts.cfind.maxnum,
"Maximum number of results")
->type_name("<number>")