Skip to content

Commit

Permalink
fix(ux): sort valid versions semantically
Browse files Browse the repository at this point in the history
  • Loading branch information
akx authored and browniebroke committed Oct 13, 2020
1 parent 70dc3cb commit ab4c20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_codemod/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _parse_unsafe(self, value, param, ctx):
if parsed_version not in self.valid_versions:
supported_versions = ", ".join(
".".join(str(version_part) for version_part in version_tuple)
for version_tuple in self.valid_versions
for version_tuple in sorted(self.valid_versions)
)
self.fail(
f"{value!r} is not supported. "
Expand Down

0 comments on commit ab4c20e

Please sign in to comment.