On Thu, Jun 02, 2016 at 02:42:44PM -0700, Bryce Harrington wrote:
> 'wayland-scanner -v' (correctly) reports the program as named
> "wayland-scanner", but 'wayland-scanner -h' was inconsistent, referring
> to it as './scanner'.
> 
> Signed-off-by: Bryce Harrington <[email protected]>

I guess we could also pass argv and use argv[0], but this works as well.

Reviewed-by: Jonas Ådahl <[email protected]>

> ---
>  src/scanner.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/scanner.c b/src/scanner.c
> index 5f06e8e..ae2326f 100644
> --- a/src/scanner.c
> +++ b/src/scanner.c
> @@ -57,8 +57,8 @@ enum side {
>  static int
>  usage(int ret)
>  {
> -     fprintf(stderr, "usage: ./scanner [OPTION] 
> [client-header|server-header|code]"
> -             " [input_file output_file]\n");
> +     fprintf(stderr, "usage: wayland-scanner [OPTION] 
> [client-header|server-header|code]"
> +             " [input_file output_file]\n", argv[0]);
>       fprintf(stderr, "\n");
>       fprintf(stderr, "Converts XML protocol descriptions supplied on "
>                       "stdin or input file to client\n"
> -- 
> 1.9.1
> 
> _______________________________________________
> wayland-devel mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to