{"action":"opened","issue":{"url":"https://api.github.com/repos/mitsuhiko/click/issues/513","repository_url":"https://api.github.com/repos/mitsuhiko/click","labels_url":"https://api.github.com/repos/mitsuhiko/click/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/click/issues/513/comments","events_url":"https://api.github.com/repos/mitsuhiko/click/issues/513/events","html_url":"https://github.com/mitsuhiko/click/issues/513","id":131190307,"number":513,"title":"Commands shall be listed in order of appearance","user":{"login":"vlcinsky","id":635911,"avatar_url":"https://avatars.githubusercontent.com/u/635911?v=3","gravatar_id":"","url":"https://api.github.com/users/vlcinsky","html_url":"https://github.com/vlcinsky","followers_url":"https://api.github.com/users/vlcinsky/followers","following_url":"https://api.github.com/users/vlcinsky/following{/other_user}","gists_url":"https://api.github.com/users/vlcinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vlcinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlcinsky/subscriptions","organizations_url":"https://api.github.com/users/vlcinsky/orgs","repos_url":"https://api.github.com/users/vlcinsky/repos","events_url":"https://api.github.com/users/vlcinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vlcinsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-03T23:37:39Z","updated_at":"2016-02-03T23:37:39Z","closed_at":null,"body":"Currently when I show help for a command with couple of subcommands, subcommands are listed in alphabetical order:\r\n\r\n    Usage: listflat [OPTIONS] COMMAND [ARGS]...\r\n\r\n      List content of flat bucket.\r\n\r\n      For lists use `basekeys`, `days` and `versions`.\r\n\r\n      For stats use `timerange` and `statdays`.\r\n\r\n      To generate copy scripts use `cpdays` or `cpversions`.\r\n\r\n    Options:\r\n      --bucket TEXT  Name of flat bucket  [default: flat.dp.ce-traffic.com]\r\n      --help         Show this message and exit.\r\n\r\n    Commands:\r\n      basekeys    List all basekey names found on the bucket.\r\n      cpdays      Generate script to copy couple of days.\r\n      cpversions  Generate script to copy one day versions.\r\n      days        List all days for base key BKEY.\r\n      statdays    Print statistics for all BKEY days.\r\n      timerange   Find oldest and newest version of a BKEY.\r\n      versions    List all versions for BKEY and DAY.\r\n\r\nMy code provides the subcommands in different order, which I would prefer to be followed also in the help as they have some natural order of usage.\r\n\r\nSo the resulting help would list commands in better order and I could skip my general helpstring.\r\n\r\n    Usage: listflat [OPTIONS] COMMAND [ARGS]...\r\n\r\n      List content of flat bucket.\r\n\r\n    Options:\r\n      --bucket TEXT  Name of flat bucket  [default: flat.dp.ce-traffic.com]\r\n      --help         Show this message and exit.\r\n\r\n    Commands:\r\n      basekeys    List all basekey names found on the bucket.\r\n      days        List all days for base key BKEY.\r\n      versions    List all versions for BKEY and DAY.\r\n      timerange   Find oldest and newest version of a BKEY.\r\n      statdays    Print statistics for all BKEY days.\r\n      cpdays      Generate script to copy couple of days.\r\n      cpversions  Generate script to copy one day versions.\r\n\r\nIs there such an option?\r\n"}}