summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <tcrosley@domaintools.com>2017-06-07 18:35:41 -0700
committerTimothy Crosley <tcrosley@domaintools.com>2017-06-07 18:35:41 -0700
commit28dc71c97fee11e5a0490032d3a23502a6417110 (patch)
tree26ad0474ee26a3b888c049329641b99e0312c313
parent2d2f8ca4d342d3038f2f37cf3f5a4af37d729104 (diff)
downloadisort-28dc71c97fee11e5a0490032d3a23502a6417110.tar.gz
Add version number argument
-rwxr-xr-xisort/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/isort/main.py b/isort/main.py
index fd192338..53bc1d00 100755
--- a/isort/main.py
+++ b/isort/main.py
@@ -211,6 +211,8 @@ def create_parser():
help="Combines as imports on the same line.")
parser.add_argument('-tc', '--trailing-comma', dest='include_trailing_comma', action='store_true',
help='Includes a trailing comma on multi line imports that include parentheses.')
+ parser.add_argument('-vn', '--version-number', action='version', version=__version__,
+ help='Returns just the current version number without the logo')
parser.add_argument('-v', '--version', action='store_true', dest='show_version')
parser.add_argument('-vb', '--verbose', action='store_true', dest="verbose",
help='Shows verbose output, such as when files are skipped or when a check is successful.')