static void print_help(void)
{
- printf("Usage: %s <options>\n", get_progname());
- printf("List all GPIO chips\n");
+ printf("Usage: %s [OPTIONS]\n", get_progname());
+ printf("List all GPIO chips, print their labels and number of GPIO lines.\n");
printf("Options:\n");
printf(" -h, --help:\t\tdisplay this message and exit\n");
printf(" -v, --version:\tdisplay the version and exit\n");
static void print_help(void)
{
- printf("Usage: %s <options> [NAME]\n", get_progname());
- printf("Find a GPIO line by name.\n");
+ printf("Usage: %s [OPTIONS] <name>\n", get_progname());
+ printf("Find a GPIO line by name. The output of this command can be used as input for gpioget/set.\n");
printf("Options:\n");
printf(" -h, --help:\t\tdisplay this message and exit\n");
printf(" -v, --version:\tdisplay the version and exit\n");
{ 0 },
};
-static const char *const shortopts = "hvl";
+static const char *const shortopts = "+hvl";
static void print_help(void)
{
- printf("Usage: %s [CHIP NAME/NUMBER] [LINE OFFSET] <options>\n",
+ printf("Usage: %s [OPTIONS] <chip name/number> <line offset>\n",
get_progname());
printf("Read value from a GPIO line\n");
printf("Options:\n");
static void print_help(void)
{
- printf("Usage: %s <options> [GPIOCHIP1...]\n", get_progname());
- printf("List all lines of a GPIO chip.\n");
+ printf("Usage: %s [OPTIONS] <gpiochip1> ...\n", get_progname());
+ printf("Print information about all lines of the specified GPIO chip(s) (or all gpiochips if none are specified).\n");
printf("Options:\n");
printf(" -h, --help:\t\tdisplay this message and exit\n");
printf(" -v, --version:\tdisplay the version and exit\n");
{ 0 },
};
-static const char *const shortopts = "hvl";
+static const char *const shortopts = "+hvl";
static void print_help(void)
{
- printf("Usage: %s [CHIP NAME/NUMBER] [LINE OFFSET] <options>\n",
+ printf("Usage: %s [OPTIONS] <chip name/number> <line offset>\n",
get_progname());
printf("Wait for events on a GPIO line\n");
printf("Options:\n");
{ 0 },
};
-static const char *const shortopts = "hvl";
+static const char *const shortopts = "+hvl";
static void print_help(void)
{
- printf("Usage: %s [CHIP NAME/NUMBER] [LINE OFFSET] [VALUE] <options>\n",
+ printf("Usage: %s [OPTIONS] <chip name/number> <line offset> <value>\n",
get_progname());
printf("Set value of a GPIO line\n");
printf("Options:\n");