diff --git a/README b/README index 6dc775ba..9cb98df2 100644 --- a/README +++ b/README @@ -120,7 +120,7 @@ LICENSE.JQUERY and LICENSE.NICEDIT for their respective license terms. the dates manually via the Admin, or setup a cronjob to run scripts/create_escalation_exclusions.py on a regular basis: - 0 0 * * 0 /path/to/helpdesksite/manage.py create_escalation_exclusions.py --days saturday,sunday --verbose + 0 0 * * 0 /path/to/helpdesksite/manage.py create_escalation_exclusions.py --days saturday,sunday --escalate-verbosely This will, on a weekly basis, create exclusions for the coming weekend. diff --git a/management/commands/create_escalation_exclusions.py b/management/commands/create_escalation_exclusions.py index 3e83c7d1..63e56202 100644 --- a/management/commands/create_escalation_exclusions.py +++ b/management/commands/create_escalation_exclusions.py @@ -37,7 +37,7 @@ class Command(BaseCommand): '--queues', '-q', help='Queues to include (default: all). Use queue slugs'), make_option( - '--verbose', '-v', + '--escalate-verbosely', '-x', action='store_true', default=False, help='Display a list of dates excluded'), @@ -50,7 +50,7 @@ class Command(BaseCommand): queue_slugs = options['queues'] queues = [] - if options['verbose']: + if options['escalate-verbosely']: verbose = True # this should already be handled by optparse @@ -129,7 +129,7 @@ if __name__ == '__main__': queues = [] for o, a in opts: - if o in ('-v', '--verbose'): + if o in ('-x', '--escalate-verbosely'): verbose = True if o in ('-d', '--days'): days = a