summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2020-01-05 14:19:58 -0800
committerGitHub <noreply@github.com>2020-01-05 14:19:58 -0800
commit39ed7a6032e39022dd2cdf1e9e0810b9757600b8 (patch)
treefe1f3bcdb4b53f3f67e0993eb9a0dd52b0856fc5
parentdd1e8ca431f137a0282cd3d325ffa84802183c18 (diff)
parent71efd733dfea8fe1262ea96bcee8f13dd8e159b7 (diff)
downloadisort-39ed7a6032e39022dd2cdf1e9e0810b9757600b8.tar.gz
Merge pull request #1080 from timothycrosley/feature/fix-issue-1067
Feature/fix issue 1067
-rw-r--r--CHANGELOG.md1
-rw-r--r--isort/main.py10
2 files changed, 9 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dffc2678..3b78e165 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ Changelog
- Config files are no longer composed on-top of each-other. Instead the first config file found is used.
- Since there is no longer composition negative form settings (such as --dont-skip) are no longer required and have been removed.
- Two-letter shortened setting names (like `ac` for `atomic`) now require two dashes to avoid ambiguity: `--ac`.
+ - For consistency with other tools `-v` now is shorthand for verbose and `-V` is shorthand for version. See Issue: #1067.
- `length_sort_{section_name}` config usage has been deprecated. Instead `length_sort_sections` list can be used to specify a list of sections that need to be length sorted.
- `safety_excludes` and `unsafe` have been deprecated
- Config now includes as default full set of safety directories defined by safety excludes.
diff --git a/isort/main.py b/isort/main.py
index 2c30cfa0..18c4d164 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -449,9 +449,15 @@ def parse_args(argv: Optional[Sequence[str]] = None) -> Dict[str, Any]:
action="store_true",
help="Use parenthesis for line continuation on length limit instead of slashes.",
)
- parser.add_argument("-v", "--version", action="store_true", dest="show_version")
parser.add_argument(
- "--vb",
+ "-V",
+ "--version",
+ action="store_true",
+ dest="show_version",
+ help="Displays the currently installed version of isort.",
+ )
+ parser.add_argument(
+ "-v",
"--verbose",
action="store_true",
dest="verbose",