From ab4c20eeae7c3edb2c116da08836d44af340413f Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 13 Oct 2020 12:43:04 +0300 Subject: [PATCH] fix(ux): sort valid versions semantically --- django_codemod/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_codemod/cli.py b/django_codemod/cli.py index abb44b8e..49fdfa19 100644 --- a/django_codemod/cli.py +++ b/django_codemod/cli.py @@ -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. "