diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-03-05 13:49:36 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-18 23:07:27 +0000 |
commit | 49a422fab9afb3f013ee6115738c7e13d9ec8191 (patch) | |
tree | 94b2c459ecbf8b4da641c0bd7df4af2153ee01c9 /futility/futility.c | |
parent | 7b50512ccf17f1a0f138c2ef2bb5d3984e0e89de (diff) | |
download | vboot-49a422fab9afb3f013ee6115738c7e13d9ec8191.tar.gz |
futility: change longhelp functions to take multiple args
Some of the help messages are getting pretty long. We should
allow each command to provide additional help details only when
asked.
BUG=none
BRANCH=none
TEST=make runtests
I also compared the help messages for all commands, both before
and after this change to ensure that nothing was different.
Change-Id: Ibe92ec80f99d286886fe020c9d826a5a05556471
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/260494
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'futility/futility.c')
-rw-r--r-- | futility/futility.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/futility.c b/futility/futility.c index e11cbadf..2a7b6bcf 100644 --- a/futility/futility.c +++ b/futility/futility.c @@ -227,7 +227,7 @@ static int do_help(int argc, char *argv[]) if (cmd) { printf("\n%s - %s\n", argv[1], cmd->shorthelp); if (cmd->longhelp) - cmd->longhelp(argv[1]); + cmd->longhelp(argc - 1, argv + 1); return 0; } } |