click-contrib / sphinx-click

A Sphinx plugin to automatically document click-based applications
MIT License
212 stars 57 forks source link

Commands show up unordered #4

Closed albireox closed 7 years ago

albireox commented 7 years ago

My click parser has the commands sorted alphabetically

Usage: cmd_parser.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  camera     Handles the cameras.
  centre_up  Centres the field.
  ds9        Handles the DS9 communication
  help       Shows the help.
  ping       Pings the actor.
  status     Returns the status.
  tcc        Handles the TCC connection
  version    Returns the version.

However, the documentation generated by sphinx-click shows the commands in an apparently random order (e.g., status, help, ds9, etc).

stephenfin commented 7 years ago

This is included in 1.0.2.