Skip to content

Commit 71a4274

Browse files
committed
Print uhubctl version as last item in --help output
1 parent d98e6de commit 71a4274

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

uhubctl.c

+5-4
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static const struct option long_options[] = {
243243
static int print_usage()
244244
{
245245
printf(
246-
"uhubctl %s: utility to control USB port power for smart hubs.\n"
246+
"uhubctl: utility to control USB port power for smart hubs.\n"
247247
"Usage: uhubctl [options]\n"
248248
"Without options, show status for all smart hubs.\n"
249249
"\n"
@@ -263,12 +263,13 @@ static int print_usage()
263263
"--version, -v - print program version.\n"
264264
"--help, -h - print this text.\n"
265265
"\n"
266-
"Send bugs and requests to: https://github.com/mvp/uhubctl\n",
267-
PROGRAM_VERSION,
266+
"Send bugs and requests to: https://github.com/mvp/uhubctl\n"
267+
"version: %s\n",
268268
strlen(opt_vendor) ? opt_vendor : "any",
269269
opt_delay,
270270
opt_repeat,
271-
opt_wait
271+
opt_wait,
272+
PROGRAM_VERSION
272273
);
273274
return 0;
274275
}

0 commit comments

Comments
 (0)