Check for optional argument to -s option

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen 2017-08-11 09:23:13 +02:00 committed by Lukas Fleischer
parent 43cd40e8ce
commit 0df373f26a

View File

@ -522,6 +522,8 @@ int parse_args(int argc, char **argv)
query = 1;
break;
case 's':
if (!optarg)
optarg = "today";
from = parse_datetimearg(optarg);
EXIT_IF(from == -1, _("invalid date: %s"), optarg);
filter.type_mask |= TYPE_MASK_CAL;