diff options
Diffstat (limited to 'euscanwww/djeuscan/management/commands/stabilization_candidates.py')
-rw-r--r-- | euscanwww/djeuscan/management/commands/stabilization_candidates.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/euscanwww/djeuscan/management/commands/stabilization_candidates.py b/euscanwww/djeuscan/management/commands/stabilization_candidates.py index 140bb61..890e0d1 100644 --- a/euscanwww/djeuscan/management/commands/stabilization_candidates.py +++ b/euscanwww/djeuscan/management/commands/stabilization_candidates.py @@ -3,13 +3,25 @@ from django.core.management.base import BaseCommand from djeuscan.processing import set_verbosity_level from djeuscan.processing.misc import stabilization_candidates +from optparse import make_option logger = logging.getLogger(__name__) class Command(BaseCommand): _overlays = {} - help = 'Collect stabilization candidates' + + option_list = BaseCommand.option_list + ( + make_option( + '-d', + '--days-to-candidate', + action='store_true', + dest='all', + default=30, + help='Minimum of days to be in tree for becoming stable.' + ), + ) + help = 'Collects stabilization candidates' def handle(self, *args, **options): set_verbosity_level(logger, options.get("verbosity", 1)) |