aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/args.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/args.c b/src/args.c
index bcfd207..a860ed9 100644
--- a/src/args.c
+++ b/src/args.c
@@ -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;