gadget: Add disable and enable help
authorPawel Szewczyk <p.szewczyk@samsung.com>
Mon, 6 Jul 2015 09:15:30 +0000 (11:15 +0200)
committerPawel Szewczyk <p.szewczyk@samsung.com>
Tue, 7 Jul 2015 12:26:28 +0000 (14:26 +0200)
Change-Id: I6dd4cfeef80f2673fb61cd88b8a8c3978ebbf191
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
source/gadget/src/gadget.c

index ebe5ae8..7f6a60d 100644 (file)
@@ -335,7 +335,14 @@ out:
 
 static int gt_gadget_enable_help(void *data)
 {
-       printf("Gadget enable help.\n");
+       printf("usage: %s disable [options] [gadget] \n"
+              "Remove gadget of specified name\n"
+              "\n"
+              "Options:\n"
+              "  -u=<udc>, --udc=<udc>\tDisable gadget which is active at given udc\n"
+              "  -h, --help\tPrint this help\n",
+              program_name);
+
        return -1;
 }
 
@@ -376,7 +383,17 @@ out:
 
 static int gt_gadget_disable_help(void *data)
 {
-       printf("Gadget disable help.\n");
+       printf("usage: %s disable [options] [gadget] \n"
+              "Disable gadget. If gadget has been specified it is disabled, otherwise: if "
+              "only one gadget exist it is used, if more than one gadget exist including "
+              "default gadget, the default is disabled else error due to ambiguous gadget name "
+              "unless -u or --udc option was used."
+              "\n"
+              "Options:\n"
+              "  -u=<udc>, --udc=<udc>\tDisable gadget which is active at given udc\n"
+              "  -h, --help\tPrint this help\n",
+              program_name);
+
        return -1;
 }