Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2121207 commit aa3d60e050112ef1373d7216eabe0ee966615527 Author: Josh Poimboeuf <jpoimboe@redhat.com> Date: Mon Apr 18 09:50:21 2022 -0700 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 Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> |
||
---|---|---|
.. | ||
Build | ||
Makefile | ||
exec-cmd.c | ||
exec-cmd.h | ||
help.c | ||
help.h | ||
pager.c | ||
pager.h | ||
parse-options.c | ||
parse-options.h | ||
run-command.c | ||
run-command.h | ||
sigchain.c | ||
sigchain.h | ||
subcmd-config.c | ||
subcmd-config.h | ||
subcmd-util.h |