Skip to content

Commit

Permalink
Removed deprecated --head-only option (Fixes #380)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jan 19, 2021
1 parent c4a5151 commit ae0a5a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions flask_migrate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 2 additions & 4 deletions flask_migrate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ae0a5a9

Please sign in to comment.