[PATCH 1/3] t/test-tool: usage description
- From
Rubén Justo <rjusto@gmail.com>
- Date
- Jan 9, 2024, 15:29 UTC
- Message-ID
- <ec57072d-0069-4d07-a695-b89436350568@gmail.com>
- In-Reply-To
- <7c68392c-af2f-4999-ae64-63221bf7833a@gmail.com>
Even though this is an internal tool, let's keep the usage description correct and well organized.
Signed-off-by: Rubén Justo <rjusto@gmail.com> --- t/helper/test-tool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c index 37ba996539..d9f57c20db 100644 --- a/t/helper/test-tool.c +++ b/t/helper/test-tool.c @@ -5,7 +5,7 @@ #include "parse-options.h" static const char * const test_tool_usage[] = { - "test-tool [-C <directory>] <command [<arguments>...]]", + "test-tool [-C <directory>] <command> [<arguments>...]]", NULL }; @@ -100,7 +100,7 @@ static NORETURN void die_usage(void) { size_t i; - fprintf(stderr, "usage: test-tool <toolname> [args]\n"); + fprintf(stderr, "usage: %s\n", test_tool_usage[0]); for (i = 0; i < ARRAY_SIZE(cmds); i++) fprintf(stderr, " %s\n", cmds[i].name); exit(128);
-- 2.42.0