summaryrefslogtreecommitdiff
path: root/src/interactive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interactive.cc')
-rw-r--r--src/interactive.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/interactive.cc b/src/interactive.cc
index 528ef9f2..1ae976e7 100644
--- a/src/interactive.cc
+++ b/src/interactive.cc
@@ -75,7 +75,13 @@ void interactive_t::verify_arguments() const
break;
case 'd':
label = _("a date");
- wrong_arg = ! next_arg->is_date();
+ wrong_arg = (! next_arg->is_date() &&
+ ! next_arg->is_datetime());
+ break;
+ case 't':
+ label = _("a date/time");
+ wrong_arg = (! next_arg->is_date() &&
+ ! next_arg->is_datetime());
break;
case 'i':
case 'l':
@@ -106,11 +112,6 @@ void interactive_t::verify_arguments() const
label = _("a string");
wrong_arg = ! next_arg->is_string();
break;
- case 't':
- label = _("a date or time");
- wrong_arg = (! next_arg->is_date() &&
- ! next_arg->is_datetime());
- break;
case 'v':
label = _("any value");
wrong_arg = false;