diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-26 16:52:41 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-26 16:52:41 +0100 |
commit | 4574c30fcfd3b03bab9a368a6ff2928af7e11e28 (patch) | |
tree | 31112a34e89d39a51d6ed6f83e13978b69d97aa9 /src/interactive.cc | |
parent | 1fad2ec7c135ebe87bb34838f21adaac720dda03 (diff) | |
download | ledger-4574c30fcfd3b03bab9a368a6ff2928af7e11e28.tar.gz ledger-4574c30fcfd3b03bab9a368a6ff2928af7e11e28.tar.bz2 ledger-4574c30fcfd3b03bab9a368a6ff2928af7e11e28.zip |
The --download option is now fully restored
Diffstat (limited to 'src/interactive.cc')
-rw-r--r-- | src/interactive.cc | 13 |
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; |