From 0dd4eef68fb5f79e87d8cf61570faa2162f1190b Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Thu, 10 Oct 2024 15:56:22 +0900 Subject: [PATCH] Fix help message of apinames. * src/tools/apinames.c: The first header file must be given after the options. All arguments after the first header file are dealt as header files to be parsed, regardless with their leading "-". For example, "apinames include/freetype/freetype.h -dFREETYPE.DLL" warns "unable to open -dFREETYPE.DLL". Thus, the "header1" must be given after the arguments to be parsed as the options. --- src/tools/apinames.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/apinames.c b/src/tools/apinames.c index 5a49b0649..38407b2d7 100644 --- a/src/tools/apinames.c +++ b/src/tools/apinames.c @@ -380,7 +380,7 @@ usage( void ) "It receives a list of header files as an argument and\n" "generates a sorted list of unique identifiers in various formats.\n" "\n" - "usage: %s header1 [options] [header2 ...]\n" + "usage: %s [options] header1 [header2 ...]\n" "\n" "options: - parse the contents of stdin, ignore arguments\n" " -v verbose mode, output sent to standard error\n"