diff mbox series

[libgpiod,v2,2/2] gpioset: improve toggle option help

Message ID 20231229093328.62366-3-warthog618@gmail.com
State New
Headers show
Series gpioset: improve help | expand

Commit Message

Kent Gibson Dec. 29, 2023, 9:33 a.m. UTC
Reword toggle option help to add that a 0 terminated sequence will
exit.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
---
 tools/gpioset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/gpioset.c b/tools/gpioset.c
index f2f9a15..863da4a 100644
--- a/tools/gpioset.c
+++ b/tools/gpioset.c
@@ -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");