From: Bartosz Golaszewski Date: Sat, 3 Nov 2018 11:56:48 +0000 (+0100) Subject: tools: tweak the formatting of help text strings X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3a8aa70c54edc146ccfc595f072085d29b495b91;p=qemu-gpiodev%2Flibgpiod.git tools: tweak the formatting of help text strings Add an additional newline between the summary and the options list for better readability. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/tools/gpiodetect.c b/src/tools/gpiodetect.c index e247e30..98e26cd 100644 --- a/src/tools/gpiodetect.c +++ b/src/tools/gpiodetect.c @@ -24,6 +24,7 @@ static void print_help(void) { printf("Usage: %s [OPTIONS]\n", get_progname()); printf("List all GPIO chips, print their labels and number of GPIO lines.\n"); + printf("\n"); printf("Options:\n"); printf(" -h, --help:\t\tdisplay this message and exit\n"); printf(" -v, --version:\tdisplay the version and exit\n"); diff --git a/src/tools/gpiofind.c b/src/tools/gpiofind.c index fc453ea..76f0889 100644 --- a/src/tools/gpiofind.c +++ b/src/tools/gpiofind.c @@ -24,6 +24,7 @@ static void print_help(void) { printf("Usage: %s [OPTIONS] \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("\n"); printf("Options:\n"); printf(" -h, --help:\t\tdisplay this message and exit\n"); printf(" -v, --version:\tdisplay the version and exit\n"); diff --git a/src/tools/gpioget.c b/src/tools/gpioget.c index 16d85ac..b468c05 100644 --- a/src/tools/gpioget.c +++ b/src/tools/gpioget.c @@ -27,6 +27,7 @@ static void print_help(void) printf("Usage: %s [OPTIONS] ...\n", get_progname()); printf("Read line value(s) from a GPIO chip\n"); + printf("\n"); printf("Options:\n"); printf(" -h, --help:\t\tdisplay this message and exit\n"); printf(" -v, --version:\tdisplay the version and exit\n"); diff --git a/src/tools/gpioinfo.c b/src/tools/gpioinfo.c index 12eee01..e631e1c 100644 --- a/src/tools/gpioinfo.c +++ b/src/tools/gpioinfo.c @@ -48,6 +48,7 @@ static void print_help(void) { printf("Usage: %s [OPTIONS] ...\n", get_progname()); printf("Print information about all lines of the specified GPIO chip(s) (or all gpiochips if none are specified).\n"); + printf("\n"); printf("Options:\n"); printf(" -h, --help:\t\tdisplay this message and exit\n"); printf(" -v, --version:\tdisplay the version and exit\n"); diff --git a/src/tools/gpiomon.c b/src/tools/gpiomon.c index 3c42018..c13ab38 100644 --- a/src/tools/gpiomon.c +++ b/src/tools/gpiomon.c @@ -37,6 +37,7 @@ static void print_help(void) printf("Usage: %s [OPTIONS] ...\n", get_progname()); printf("Wait for events on GPIO lines\n"); + printf("\n"); printf("Options:\n"); printf(" -h, --help:\t\tdisplay this message and exit\n"); printf(" -v, --version:\tdisplay the version and exit\n"); diff --git a/src/tools/gpioset.c b/src/tools/gpioset.c index 0314e18..fb012fa 100644 --- a/src/tools/gpioset.c +++ b/src/tools/gpioset.c @@ -37,6 +37,7 @@ static void print_help(void) printf("Usage: %s [OPTIONS] = = ...\n", get_progname()); printf("Set GPIO line values of a GPIO chip\n"); + printf("\n"); printf("Options:\n"); printf(" -h, --help:\t\tdisplay this message and exit\n"); printf(" -v, --version:\tdisplay the version and exit\n");