Commit 1b42ff55 authored by Leigh Stoller's avatar Leigh Stoller

Minor interface change; building is optional. Default it in the backend

script not in the web page.
parent c245289c
......@@ -11,7 +11,7 @@ use Getopt::Std;
# TODO: Deal with multiple buildings? Currently defaults to MEB!
#
sub usage {
print STDERR "Usage: floormap [-o <prefix>] [-f <floor>] <building> or \n";
print STDERR "Usage: floormap [-o <prefix>] [-f <floor>] [<building>] or \n";
print STDERR "Usage: floormap [-o <prefix>] [-f <floor>] ";
print STDERR "[-e <pid,eid>] [<building>]\n";
exit(-1);
......@@ -109,11 +109,12 @@ if (defined($options{"e"})) {
$building = $ARGV[0];
}
}
elsif (@ARGV != 1) {
usage();
elsif (@ARGV == 1) {
$building = $ARGV[0];
}
else {
$building = $ARGV[0];
# XXX We default to MEB above. Change later.
;
}
# Building must exist. Someday deal with multiple buildings.
......
......@@ -64,10 +64,6 @@ else {
unset($eid);
}
if (!isset($building) && !isset($pid)) {
PAGEARGERROR();
}
#
# Run the script. It will produce two output files; an image and an areamap.
# We want to embed both of these images into the page we send back. This
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment