From: Matt Bacchi Date: Mon, 3 Feb 2003 23:16:20 +0000 (+0000) Subject: STABLE12-cmd-print-help-in-cases-without-subcommands-20030203 X-Git-Tag: openafs-stable-1_2_9~59 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=cc1694f5b3af05712bf5ffe0d9a8af84288b7647;p=packages%2Fo%2Fopenafs.git 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) --- 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; }