Re: [PATCH v3 3/9] argparse: allow user-override of help printing

2025-07-21 Thread Bruce Richardson
On Mon, Jul 21, 2025 at 10:43:05AM +0200, David Marchand wrote: > On Fri, Jul 18, 2025 at 4:34 PM Bruce Richardson > wrote: > > diff --git a/lib/argparse/rte_argparse.c b/lib/argparse/rte_argparse.c > > index d3b32c6357..e7b9bf573d 100644 > > --- a/lib/argparse/rte_argparse.c > > +++ b/lib/argpars

Re: [PATCH v3 3/9] argparse: allow user-override of help printing

2025-07-21 Thread David Marchand
On Fri, Jul 18, 2025 at 4:34 PM Bruce Richardson wrote: > diff --git a/lib/argparse/rte_argparse.c b/lib/argparse/rte_argparse.c > index d3b32c6357..e7b9bf573d 100644 > --- a/lib/argparse/rte_argparse.c > +++ b/lib/argparse/rte_argparse.c > @@ -821,7 +821,10 @@ rte_argparse_parse(const struct rte_

[PATCH v3 3/9] argparse: allow user-override of help printing

2025-07-18 Thread Bruce Richardson
When the arguments passed to argparse include -h/--help then usage information is automatically printed. Provide the capability for the user to supply their own help function for this. Signed-off-by: Bruce Richardson --- doc/guides/prog_guide/argparse_lib.rst | 16 lib/argparse/