On Fri, Jul 18, 2025 at 4:34 PM Bruce Richardson <bruce.richard...@intel.com> 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_argparse *obj, int > argc, char **argv) > goto error; > > if (show_help) { > - rte_argparse_print_help(stdout, obj); > + if (obj->print_help != NULL) > + obj->print_help(obj);
Should we pass a stream to the callback? > + else > + rte_argparse_print_help(stdout, obj); > exit(0); > } > -- David Marchand