diff options
author | Timothy Crosley <tcrosley@domaintools.com> | 2017-06-07 18:35:41 -0700 |
---|---|---|
committer | Timothy Crosley <tcrosley@domaintools.com> | 2017-06-07 18:35:41 -0700 |
commit | 28dc71c97fee11e5a0490032d3a23502a6417110 (patch) | |
tree | 26ad0474ee26a3b888c049329641b99e0312c313 | |
parent | 2d2f8ca4d342d3038f2f37cf3f5a4af37d729104 (diff) | |
download | isort-28dc71c97fee11e5a0490032d3a23502a6417110.tar.gz |
Add version number argument
-rwxr-xr-x | isort/main.py | 2 |
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.') |