summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/efa b/bin/efa
index d9bc5ed..51e7c8a 100755
--- a/bin/efa
+++ b/bin/efa
@@ -39,6 +39,11 @@ GetOptions(
'debug' => \$debug,
);
+unless (@to == 2 and @from == 2) {
+ print STDERR "Usage: efa --from <city> <stop> --to <city> <stop> [other options]\n";
+ exit(1);
+}
+
@post{'place_origin','name_origin'} = @from;
@post{'place_destination','name_destination'} = @to;