Fix sorting in man template on python3. Fixes #33663 (#33673)

This commit is contained in:
Matt Martz 2017-12-07 09:16:04 -05:00 committed by GitHub
parent 22f4074daa
commit 349099a4c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ ACTIONS
*{{ action }}*::: {{ (actions[action]['desc']|default(' '))|wordwrap}}
{% if actions[action]['options'] %}
{% for option in actions[action]['options']|sort %}
{% for option in actions[action]['options']|sort(attribute='options') %}
{% for switch in option['options'] if switch in actions[action]['option_names'] %}*{{switch}}*{% if option['arg'] %} '{{option['arg']}}'{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}::
{{ (option['desc']) }}