9cfca3212966a1143a26ed0eb7f48ca818c0b794
1 from optparse
import make_option
3 from django
.core
.management
.base
import BaseCommand
5 from mygpo
.api
.sanitizing
import maintenance
8 class Command(BaseCommand
):
10 option_list
= BaseCommand
.option_list
+ (
11 make_option('--dry-run', action
='store_true', dest
='dry_run', default
=False, help="Don't rewrite anything, just print the stats afterwards."),
15 def handle(self
, *args
, **options
):
17 maintenance(options
.get('dry_run'))