~james-w/udd/management-commands

1
2
3
4
5
6
7
8
9
10
from django.core.management.base import BaseCommand
from udd.scripts.analyze_log import main


class Command(BaseCommand):
    args = 'log_file'

    def handle(self, *args, **opts):
        # main() expects sys,argv, we've had $0 parsed away.
        return main([None] + args)