git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
7ff00fb
)
cmd-print-help-in-cases-without-subcommands-20030203
author
Matt Bacchi
<mbacchi@gmavt.net>
Mon, 3 Feb 2003 23:15:58 +0000 (23:15 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Mon, 3 Feb 2003 23:15:58 +0000 (23:15 +0000)
FIXES 1277
so libcmd supports help for e.g. pt_util
src/cmd/cmd.c
patch
|
blob
|
history
diff --git
a/src/cmd/cmd.c
b/src/cmd/cmd.c
index
9419038
..
8cf2e21
100644
(file)
--- a/
src/cmd/cmd.c
+++ b/
src/cmd/cmd.c
@@
-762,6
+762,9
@@
int cmd_Dispatch(int argc, 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;
}