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:
parent
43cd40e8ce
commit
0df373f26a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user