From ae0a5a922106d67605adcebe9e3f13b1ed5f84e8 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 19 Jan 2021 11:27:39 +0000 Subject: [PATCH] Removed deprecated --head-only option (Fixes #380) --- flask_migrate/__init__.py | 7 ++----- flask_migrate/cli.py | 6 ++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/flask_migrate/__init__.py b/flask_migrate/__init__.py index d0c260b..45877d0 100755 --- a/flask_migrate/__init__.py +++ b/flask_migrate/__init__.py @@ -359,19 +359,16 @@ def branches(directory=None, verbose=False): command.branches(config, verbose=verbose) -@MigrateCommand.option('--head-only', dest='head_only', action='store_true', - default=False, - help='Deprecated. Use --verbose for additional output') @MigrateCommand.option('-v', '--verbose', dest='verbose', action='store_true', default=False, help='Use more verbose output') @MigrateCommand.option('-d', '--directory', dest='directory', default=None, help=("Migration script directory (default is " "'migrations')")) @catch_errors -def current(directory=None, verbose=False, head_only=False): +def current(directory=None, verbose=False): """Display the current revision for each database.""" config = current_app.extensions['migrate'].migrate.get_config(directory) - command.current(config, verbose=verbose, head_only=head_only) + command.current(config, verbose=verbose) @MigrateCommand.option('--tag', dest='tag', default=None, diff --git a/flask_migrate/cli.py b/flask_migrate/cli.py index 9b3c851..7b8c148 100644 --- a/flask_migrate/cli.py +++ b/flask_migrate/cli.py @@ -205,12 +205,10 @@ def branches(directory, verbose): @click.option('-d', '--directory', default=None, help=('Migration script directory (default is "migrations")')) @click.option('-v', '--verbose', is_flag=True, help='Use more verbose output') -@click.option('--head-only', is_flag=True, - help='Deprecated. Use --verbose for additional output') @with_appcontext -def current(directory, verbose, head_only): +def current(directory, verbose): """Display the current revision for each database.""" - _current(directory, verbose, head_only) + _current(directory, verbose) @db.command()