diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-all-reports | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports index 250901312..4c0e96d31 100755 --- a/bin/update-all-reports +++ b/bin/update-all-reports @@ -22,12 +22,13 @@ use Getopt::Long::Descriptive; my ($opt, $usage) = describe_options( '%c %o', [ 'table', "Output JSON for old table-style page." ], + [ 'areas', "Include area IDs in output JSON." ], [ 'help', "print usage message and exit", { shortcircuit => 1 } ], ); print($usage->text), exit if $opt->help; if ($opt->table) { - FixMyStreet::Script::UpdateAllReports::generate(); + FixMyStreet::Script::UpdateAllReports::generate($opt->areas); } else { FixMyStreet::Script::UpdateAllReports::generate_dashboard(); } |