mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-01-30 07:02:44 +00:00
[svn r5754] Remove extra debug
This commit is contained in:
parent
e206620fe5
commit
5aed127ccb
@ -12,22 +12,17 @@ use Getopt::Long;
|
||||
my $no_verbose_progress = 0;
|
||||
my $usage = 0;
|
||||
GetOptions('quiet' => \$no_verbose_progress, # be quiet
|
||||
'help|?' => \$usage # help!
|
||||
'help' => \$usage # help!
|
||||
);
|
||||
|
||||
# Print usage
|
||||
if ($usage) {
|
||||
print << "EOF";
|
||||
USAGE: $progname [-options] <CSV file>
|
||||
-q, --quiet Be quiet about progress
|
||||
-h, --help Show this message
|
||||
EOF
|
||||
exit(0);
|
||||
usage();
|
||||
}
|
||||
|
||||
unless ($ARGV[0]) {
|
||||
print "Specify a CSV file name (e.g. CAVETAB2.CSV)\n";
|
||||
die $!;
|
||||
print "Specify a CSV file name as the program's argument(e.g. CAVETAB2.CSV)\n";
|
||||
usage();
|
||||
}
|
||||
|
||||
open (CSV, "< $ARGV[0]");
|
||||
@ -184,7 +179,6 @@ sub do_this_line {
|
||||
# If the cave does not have a filename allocated, but does have multiple entrances, keep going through the CSV file until we are at the last entrance, before we return
|
||||
unless ($file) { # this IS necessary
|
||||
if ($mult_ents eq "yes") {
|
||||
print "hello $kat_num $other_number\n";
|
||||
my $e_mult_ents;
|
||||
do {
|
||||
my $e = <CSV>;
|
||||
@ -590,3 +584,13 @@ sub multi_ents {
|
||||
|
||||
print FILE "\n\n</menu>";
|
||||
}
|
||||
|
||||
# Usage
|
||||
sub usage {
|
||||
print << "EOF";
|
||||
USAGE: $progname [-options] <CSV file>
|
||||
-q, --quiet Be quiet about progress
|
||||
-h, --help Show this message
|
||||
EOF
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user