summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMarco Chen <marcochen@chromium.org>2019-02-23 12:00:45 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-28 14:14:05 -0700
commit1b2426b5186d69cb53d327dfdc4795376686493a (patch)
treeb7d9af22f5e9e625d8a211ad89611016fdf08374 /util
parent316cf2a3afee7f0ebfa39f32d394220974539c67 (diff)
downloadchrome-ec-1b2426b5186d69cb53d327dfdc4795376686493a.tar.gz
ectool: fix help message for sub-command - usbchargemode.
Add optional third argument - inhibit_charge into help message of usbchargemode. BRANCH=none BUG=None TEST=Check help message by executing new generated ectool binary. Change-Id: Ie6dca334c3eec00e00fa2e3083f57c45bed3c745 Signed-off-by: Marco Chen <marcochen@google.com> Reviewed-on: https://chromium-review.googlesource.com/1485031 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Marco Chen <marcochen@chromium.org> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/ectool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 51bf39ca3a..707eab71ac 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -272,7 +272,7 @@ const char help_str[] =
" uptimeinfo\n"
" Get info about how long the EC has been running and the most\n"
" recent AP resets\n"
- " usbchargemode <port> <mode>\n"
+ " usbchargemode <port> <mode> [<inhibit_charge>]\n"
" Set USB charging mode\n"
" usbmux <mux>\n"
" Set USB mux switch state\n"
@@ -4933,7 +4933,7 @@ int cmd_usb_charge_set_mode(int argc, char *argv[])
if (argc != 3 && argc != 4) {
fprintf(stderr,
- "Usage: %s <port_id> <mode_id> <inhibit_charge>\n",
+ "Usage: %s <port_id> <mode_id> [<inhibit_charge>]\n",
argv[0]);
return -1;
}