anv: reword info flag in intel_clc's getopt to avoid clash
The info keyword was using the same short description that was listed for input files on the struct for long_options. Rewording it to 'v' and 'verbose' to be more in line with expectations. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19153>
This commit is contained in:

committed by
Marge Bot

parent
2b3529d3d8
commit
8e1f03ada0
@@ -266,6 +266,7 @@ print_usage(char *exec_name, FILE *f)
|
|||||||
" --prefix <prefix> Prefix for variable names in generated C code.\n"
|
" --prefix <prefix> Prefix for variable names in generated C code.\n"
|
||||||
" -g, --out <filename> Specify the output filename.\n"
|
" -g, --out <filename> Specify the output filename.\n"
|
||||||
" -s, --spv <filename> Specify the output filename for spirv.\n"
|
" -s, --spv <filename> Specify the output filename for spirv.\n"
|
||||||
|
" -v, --verbose Print more information during compilation.\n"
|
||||||
, exec_name);
|
, exec_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,7 +300,7 @@ int main(int argc, char **argv)
|
|||||||
{"in", required_argument, 0, 'i'},
|
{"in", required_argument, 0, 'i'},
|
||||||
{"out", required_argument, 0, 'o'},
|
{"out", required_argument, 0, 'o'},
|
||||||
{"spv", required_argument, 0, 's'},
|
{"spv", required_argument, 0, 's'},
|
||||||
{"info", no_argument, 0, 'i'},
|
{"verbose", no_argument, 0, 'v'},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -318,7 +319,7 @@ int main(int argc, char **argv)
|
|||||||
util_dynarray_init(&spirv_ptr_objs, mem_ctx);
|
util_dynarray_init(&spirv_ptr_objs, mem_ctx);
|
||||||
|
|
||||||
int ch;
|
int ch;
|
||||||
while ((ch = getopt_long(argc, argv, "he:p:s:o:i", long_options, NULL)) != -1)
|
while ((ch = getopt_long(argc, argv, "he:p:s:o:v", long_options, NULL)) != -1)
|
||||||
{
|
{
|
||||||
switch (ch)
|
switch (ch)
|
||||||
{
|
{
|
||||||
@@ -337,7 +338,7 @@ int main(int argc, char **argv)
|
|||||||
case 's':
|
case 's':
|
||||||
spv_outfile = optarg;
|
spv_outfile = optarg;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'v':
|
||||||
print_info = true;
|
print_info = true;
|
||||||
break;
|
break;
|
||||||
case OPT_PREFIX:
|
case OPT_PREFIX:
|
||||||
|
Reference in New Issue
Block a user