Commit fed04b3a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

A little bit input validation

parent 2b0f4b4a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;