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

pull/33691/head
Matt Martz 7 years ago committed by GitHub
parent 22f4074daa
commit 349099a4c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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']) }}

Loading…
Cancel
Save