diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2022-04-18 18:50:21 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-04-22 12:32:01 +0200 |
commit | aa3d60e050112ef1373d7216eabe0ee966615527 (patch) | |
tree | 60c0084d3faf49fee0a2813daa339268b0f2191e /security | |
parent | Merge branch 'tip/x86/urgent' (diff) | |
download | linux-aa3d60e050112ef1373d7216eabe0ee966615527.tar.xz linux-aa3d60e050112ef1373d7216eabe0ee966615527.zip |
libsubcmd: Fix OPTION_GROUP sorting
The OPTION_GROUP option type is a way of grouping certain options
together in the printed usage text. It happens to be completely broken,
thanks to the fact that the subcmd option sorting just sorts everything,
without regard for grouping. Luckily, nobody uses this option anyway,
though that will change shortly.
Fix it by sorting each group individually.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/e167ea3a11e2a9800eb062c1fd0f13e9cd05140c.1650300597.git.jpoimboe@redhat.com
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions