diff --git a/cmd/multicall-options.c b/cmd/multicall-options.c index 9037264..0c7597a 100644 --- a/cmd/multicall-options.c +++ b/cmd/multicall-options.c @@ -62,6 +62,9 @@ generic_usage(const struct if_applet *applet, int result) } } + if (applet->manpage != NULL) + fprintf(stderr, "\nFor more information: man %s\n", applet->manpage); + exit(result); } diff --git a/cmd/multicall.h b/cmd/multicall.h index 23cb836..0843580 100644 --- a/cmd/multicall.h +++ b/cmd/multicall.h @@ -43,6 +43,7 @@ struct if_applet { const char *name; const char *desc; const char *usage; + const char *manpage; int (*const main)(int argc, char *argv[]); const struct if_option_group *groups[16]; };