[PATCH v1 2/2] app/testpmd: sort commands by help string

Stephen Hemminger stephen at networkplumber.org
Thu May 22 00:24:09 CEST 2025


On Wed, 14 May 2025 14:02:12 +0100
Anatoly Burakov <anatoly.burakov at intel.com> wrote:

> When using '?' to find commands, it occasionally is difficult to find the
> needed commands because all commands are not in alphabetical order, but
> rather can be ordered rather arbitrarily.
> 
> To address this, use help string to order commands. This sacrifices some
> amount of grouping (i.e. when tm commands go one after another), but may
> improve discoverability (and most similar commands tend to have similar
> help strings and will be located closer together anyway).
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---

Sorting is good, but why not pre-sort builtin_ctx and make it const?



More information about the dev mailing list