Skip to content

Commit

Permalink
Fix celery migrate settings options.
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrow committed Sep 14, 2020
1 parent d28e340 commit 9b5f6f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions celery/bin/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def _to_new_key(line, keyfilter=pass1, source=defaults._TO_NEW_KEY):

@upgrade.command(cls=CeleryCommand)
@click.argument('filename')
@click.option('-django',
@click.option('--django',
cls=CeleryOption,
is_flag=True,
help_group='Upgrading Options',
help='Upgrade Django project.')
@click.option('-compat',
@click.option('--compat',
cls=CeleryOption,
is_flag=True,
help_group='Upgrading Options',
Expand All @@ -66,7 +66,7 @@ def _to_new_key(line, keyfilter=pass1, source=defaults._TO_NEW_KEY):
cls=CeleryOption,
is_flag=True,
help_group='Upgrading Options',
help='Dont backup original files.')
help="Don't backup original files.")
def settings(filename, django, compat, no_backup):
"""Migrate settings from Celery 3.x to Celery 4.x."""
lines = _slurp(filename)
Expand Down

0 comments on commit 9b5f6f5

Please sign in to comment.