Skip to content

Commit

Permalink
Add --version option
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Wobrock committed Feb 3, 2019
1 parent fbf0f44 commit fea6236
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django_migration_linter/migration_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import sys

from .cache import Cache
from .constants import DEFAULT_CACHE_PATH, MIGRATION_FOLDER_NAME
from .constants import DEFAULT_CACHE_PATH, MIGRATION_FOLDER_NAME, __version__
from .migration import Migration
from .utils import is_directory, is_django_project, clean_bytes_to_str
from .sql_analyser import analyse_sql_statements
Expand Down Expand Up @@ -287,6 +287,9 @@ def _main():
action="store_true",
help="print more information during execution",
)
parser.add_argument(
"--version", "-V", action="version", version="%(prog)s {}".format(__version__)
)
parser.add_argument(
"--database",
type=str,
Expand Down

0 comments on commit fea6236

Please sign in to comment.