summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-12 15:27:40 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-12 15:27:40 +0200
commit452673f56cd48840f453c6a67c9592aff46c91a2 (patch)
tree26fc75cbb80f52c69abe7c4fbe3fed46cade3add
parent5e98acb5ba47129fe3d9edcf1b400c3cdacc0838 (diff)
efa: Correct --date help message
-rwxr-xr-xbin/efa2
-rw-r--r--test/50-efa.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/efa b/bin/efa
index 4c4702f..87e7047 100755
--- a/bin/efa
+++ b/bin/efa
@@ -292,7 +292,7 @@ if ($time) {
}
if ($date) {
if ($date !~ /^ [0-3]? \d \. [01]? \d \. (?: \d{4} )? $/x) {
- die("Invalid argument: Usage: --date DD.MM[.YYYY]\n");
+ die("Invalid argument: Usage: --date DD.MM.[YYYY]\n");
}
@post{'itdDateDay', 'itdDateMonth', 'itdDateYear'} = split(/\./, $date);
$post{itdDateYear} //= (localtime(time))[5] + 1900;
diff --git a/test/50-efa.t b/test/50-efa.t
index a47f9a0..fa38572 100644
--- a/test/50-efa.t
+++ b/test/50-efa.t
@@ -15,7 +15,7 @@ my $err_exclude = "Invalid argument. See manpage for --exclude usage\n";
my $err_prefer = "Invalid argument. Usage: --prefer speed|nowait|nowalk\n";
my $err_include = "Invalid argument. Usage: --include local|ic|ice\n";
my $err_time = "Invalid argument. Usage: --time HH:MM\n";
-my $err_date = "Invalid argument: Usage: --date DD.MM[.YYYY]\n";
+my $err_date = "Invalid argument: Usage: --date DD.MM.[YYYY]\n";
my $err_walk_speed
= "Invalid argument. Uaseg: --walk-speed normal|fast|slow\n";