The new option dumps the full help outputs for every command so that it's possible to conveniently check that subsequent refactors will not impact any of the external functionality. No man page entry is needed as the command is internal/undocumented. Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- tools/vsh.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/vsh.c b/tools/vsh.c index 6e558e56df..55921a0759 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -3312,6 +3312,10 @@ const vshCmdOptDef opts_selftest[] = { .type = VSH_OT_BOOL, .help = N_("output the list of options which are missing completers") }, + {.name = "dump-help", + .type = VSH_OT_BOOL, + .help = N_("output help for each command") + }, {.name = NULL} }; const vshCmdInfo info_selftest[] = { @@ -3330,9 +3334,14 @@ cmdSelfTest(vshControl *ctl, const vshCmd *cmd) const vshCmdGrp *grp; const vshCmdDef *def; bool completers = vshCommandOptBool(cmd, "completers-missing"); + bool dumphelp = vshCommandOptBool(cmd, "dump-help"); for (grp = cmdGroups; grp->name; grp++) { for (def = grp->commands; def->name; def++) { + + if (dumphelp && !def->alias) + vshCmddefHelp(def); + if (vshCmddefCheckInternals(ctl, def, completers) < 0) return false; } -- 2.44.0 _______________________________________________ Devel mailing list -- devel@xxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx