From cc1694f5b3af05712bf5ffe0d9a8af84288b7647 Mon Sep 17 00:00:00 2001 From: Matt Bacchi Date: Mon, 3 Feb 2003 23:16:20 +0000 Subject: [PATCH] STABLE12-cmd-print-help-in-cases-without-subcommands-20030203 FIXES 1277 so libcmd supports help for e.g. pt_util (cherry picked from commit d32c70edbc0ed4e4821deb5542ef11637e8c04e0) --- src/cmd/cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd/cmd.c b/src/cmd/cmd.c index 906a34854..68e730a67 100644 --- a/src/cmd/cmd.c +++ b/src/cmd/cmd.c @@ -784,6 +784,9 @@ char **argv; otherwise it is a real nuisance */ if (ts->parms[CMD_HELPPARM].items) { PrintSyntax(ts); + /* Display full help syntax if we don't have subcommands */ + if (noOpcodes) + PrintFlagHelp(ts); ResetSyntax(ts); return 0; } -- 2.39.5