[PATCH vkd3d 3/5] vkd3d-compiler: Add an explicit --help option.

Chip Davis cdavis at codeweavers.com
Thu Jul 2 18:34:28 CDT 2020


July 2, 2020 8:43 AM, "Henri Verbeet" <hverbeet at codeweavers.com> wrote:

> diff --git a/programs/vkd3d-compiler/main.c b/programs/vkd3d-compiler/main.c
> index 8fa4d4f..e975572 100644
> --- a/programs/vkd3d-compiler/main.c
> +++ b/programs/vkd3d-compiler/main.c
> @@ -147,6 +150,7 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
> 
>      static struct option long_options[] =
>      {
> +        {"help",        no_argument, NULL, OPTION_HELP},

You know that if you have a long option that aliases a short option, you can just use the short option char as the code for the long option, right?

>          {"strip-debug", no_argument, NULL, OPTION_STRIP_DEBUG},
>          {NULL,          0,           NULL, 0},
>      };

Chip



More information about the wine-devel mailing list