gpioset: improve toggle option help
authorKent Gibson <warthog618@gmail.com>
Fri, 29 Dec 2023 09:33:28 +0000 (17:33 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 2 Jan 2024 14:08:10 +0000 (15:08 +0100)
Reword toggle option help to add that a 0 terminated sequence will exit.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tools/gpioset.c

index f2f9a1557d2023852f82f987e623541c1f2ceb26..863da4a8bc77dd2fbcb048b96a17ce56adbbfc69 100644 (file)
@@ -68,7 +68,7 @@ static void print_help(void)
        printf("  -s, --strict\t\tabort if requested line names are not unique\n");
        printf("  -t, --toggle <period>[,period]...\n");
        printf("\t\t\ttoggle the line(s) after the specified period(s)\n");
-       printf("\t\t\tIf the last period is non-zero then the sequence repeats.\n");
+       printf("\t\t\tIf the last period is 0 then gpioset exits else the sequence repeats.\n");
        printf("      --unquoted\tdon't quote line names\n");
        printf("  -v, --version\t\toutput version information and exit\n");
        printf("  -z, --daemonize\tset values then detach from the controlling terminal\n");