Skip to content
Snippets Groups Projects
Commit fed04b3a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

A little bit input validation

parent 2b0f4b4a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment