From 33cac29f87a6965c2614ebe876c19dd175ac7115 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Thu, 5 Jul 2018 10:59:52 -0400 Subject: [PATCH] seq_as_rst: Sort "Choices" so they are consistently formatted --- kitty/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/cli.py b/kitty/cli.py index 94f51edd2..689ce1594 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -454,7 +454,7 @@ def seq_as_rst(seq, usage, message, appname, heading_char='-'): if defval is not None: a(textwrap.indent('Default: :code:`{}`'.format(defval), ' ' * 4)) if 'choices' in opt: - a(textwrap.indent('Choices: :code:`{}`'.format(', '.join(opt['choices'])), ' ' * 4)) + a(textwrap.indent('Choices: :code:`{}`'.format(', '.join(sorted(opt['choices']))), ' ' * 4)) a('') text = '\n'.join(blocks)