aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update-all-reports
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-xbin/update-all-reports8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports
index 02f9fda78..250901312 100755
--- a/bin/update-all-reports
+++ b/bin/update-all-reports
@@ -21,13 +21,13 @@ use Getopt::Long::Descriptive;
my ($opt, $usage) = describe_options(
'%c %o',
- [ 'dashboard', "Output JSON for new dashboard-style page." ],
+ [ 'table', "Output JSON for old table-style page." ],
[ 'help', "print usage message and exit", { shortcircuit => 1 } ],
);
print($usage->text), exit if $opt->help;
-if ($opt->dashboard) {
- FixMyStreet::Script::UpdateAllReports::generate_dashboard();
-} else {
+if ($opt->table) {
FixMyStreet::Script::UpdateAllReports::generate();
+} else {
+ FixMyStreet::Script::UpdateAllReports::generate_dashboard();
}