]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: alphanumerically sort the dump of supported commands
authorWilly Tarreau <w@1wt.eu>
Wed, 30 Mar 2022 10:02:35 +0000 (12:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Mar 2022 10:02:35 +0000 (12:02 +0200)
commit4465171593fdbe8d74445dd2d6526ef2cdea4d6e
treeb46a2816e242cea0bca87e1290d72f958183f8ed
parent800bd789447263187bda2271d7be58c4ef7c7540
MINOR: cli: alphanumerically sort the dump of supported commands

Like for previous keyword classes, we're sorting the output. But this
time as it's not trivial to do it with multiple words, instead we're
proceeding like the help command, we sort them on their usage message
when present, and fall back to the first word of the command when there
is no usage message (e.g. "help" command).
src/cli.c