You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sub-commands of argument parser always get sorted in the Sphinx documentation page generated with 'autoprogram'. There's no good way to turn alphabet sorting off (except maybe tricking with OrderedDict class, which breaks other functionality).
In my use case sorting of sub-commands produces misleading documentation, and I want to avoid sorting.
Sub-commands of argument parser always get sorted in the Sphinx documentation page generated with 'autoprogram'. There's no good way to turn alphabet sorting off (except maybe tricking with OrderedDict class, which breaks other functionality).
In my use case sorting of sub-commands produces misleading documentation, and I want to avoid sorting.
In
autoprogram.py
:choices = sorted(choices, key=lambda pair: pair[0])
I suggest adding an option for 'autoprogram', for example: ":no_sorting:".
The text was updated successfully, but these errors were encountered: