From ade55f3bed37c9f9198019339c800b72080a30f0 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Sat, 4 Oct 2014 21:37:13 +0200 Subject: [PATCH] func: Add global help screen Change-Id: I7bbf795300f9dc1f1765047377e4a6fb3141e3ff Signed-off-by: Karol Lewandowski --- source/function/src/function.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/source/function/src/function.c b/source/function/src/function.c index 1e8c0d7..e46ca98 100644 --- a/source/function/src/function.c +++ b/source/function/src/function.c @@ -400,8 +400,20 @@ static int gt_func_func_func(void *data) static int gt_func_func_help(void *data) { - printf("Func func help.\n"); - return -1; + printf("usage: %s func COMMAND\n" + "Manipulate USB function - both in-kernel and functionfs-based\n\n", + program_name); + + printf("Command:\n" + " create\n" + " rm\n" + " get\n" + " set\n" + " load\n" + " save\n" + " template\n"); + + return 0; } static void gt_parse_func_func(const Command *cmd, int argc, -- 2.7.4