Sort config options
Sort the config options alphabetically, right now the list at https://docs.openstack.org/reno/latest/user/usage.html#configuring-reno is unsorted which makes it hard to search for an option manually. Change-Id: Ibed5606bf5280752ca8826e6e0f23fa0a22c44c5
This commit is contained in:
@ -31,7 +31,7 @@ def _multi_line_string(s, indent=''):
|
||||
|
||||
def _format_option_help(options):
|
||||
"Produce RST lines for the configuration options."
|
||||
for opt in options:
|
||||
for opt in sorted(options, key=lambda opt: opt.name):
|
||||
yield '``{}``'.format(opt.name)
|
||||
for l in _multi_line_string(opt.help, ' '):
|
||||
yield l
|
||||
|
Reference in New Issue
Block a user