aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fixmystreet.com/bromley-fetch-waste
blob: 392905c832be777e496ac63685791ecd7ce23157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env perl

use v5.14;
use warnings;

BEGIN {
    use File::Basename qw(dirname);
    use File::Spec;
    my $d = dirname(File::Spec->rel2abs($0));
    require "$d/../../setenv.pl";
}

use Getopt::Long::Descriptive;
use FixMyStreet::Cobrand::Bromley;

my ($opts, $usage) = describe_options(
    '%c %o',
    ['verbose|v', 'more verbose output'],
    ['help|h', "print usage message and exit" ],
);
$usage->die if $opts->help;

my $cobrand = FixMyStreet::Cobrand::Bromley->new;
$cobrand->waste_fetch_events($opts->verbose);