static int gt_config_create_help(void *data)
{
- printf("usage: %s config create GADGET_NAME <cf_label> <cfg_id> <-f>\n"
+ printf("usage: %s config create [options] <gadget_name> <cfg_label> <cfg_id>\n"
"Add new config to gadget.\n"
- "\n",
+ "\n"
+ "Options:"
+ "-f, --force\tOverride config if config with given name already exists"
+ "-h, --help\tPrint this help",
program_name);
return 0;
}
static int gt_config_add_help(void *data)
{
- printf("usage: %s config add GADGET_NAME <cfg_id> <cf_label> <func_type> <func_instance>\n"
+ printf("usage: %s config add <gadget_name> <cfg_label> <cfg_id> <func_type> <func_instance>\n"
"Add function to specific configuration.\n"
"\n",
program_name);
static int gt_func_create_help(void *data)
{
- printf("usage: %s func create GADGET_NAME FUNCTION_TYPE FUNCTION_NAME\n"
+ printf("usage: %s func create <gadget_name> <function_type> <function_name>\n"
"Create new function of specified type (refer to `gt func list-types')\n",
program_name);
return 0;
static int gt_func_list_types_help(void *data)
{
- printf("%s func list-types\n"
+ printf("usage: %s func list-types\n"
"List available function types.\n",
program_name);
return 0;
static int gt_func_func_help(void *data)
{
- printf("usage: %s func COMMAND\n"
+ printf("usage: %s func [command] ...\n"
"Manipulate USB function - both in-kernel and functionfs-based\n\n",
program_name);
{
int i;
- printf("usage: %s create NAME [attr=value]...\n"
+ printf("usage: %s create <name> [attr=value]...\n"
"Create new gadget of specified name, attributes and language strings.\n"
"\n"
"Attributes:\n",
static int gt_gadget_rm_help(void *data)
{
- printf("usage: %s rm [OPTIONS] NAME \n"
+ printf("usage: %s rm [options] <name> \n"
"Remove gadget of specified name\n"
"\n"
"Options:\n"