Docs: Make Cycles Args visible in --help

The Cycles-specific command line arguments are currently hidden
on this page [1]. To make the command visible in the manual [2] and
in `blender --help`, I added this patch.

[1] https://docs.blender.org/manual/en/3.6/advanced/command_line/render.html#cycles
[2] https://docs.blender.org/manual/en/3.6/advanced/command_line/arguments.html#argument-order

If this gets merged, please merge https://projects.blender.org/blender/blender-manual/pulls/104455 as well.

Pull Request: https://projects.blender.org/blender/blender/pulls/108232
This commit is contained in:
Raimund Klink
2023-05-27 00:53:05 +02:00
committed by Aaron Carlisle
parent d044b9f80c
commit 082766bfa4

View File

@@ -639,6 +639,18 @@ static int arg_handle_print_help(int UNUSED(argc), const char **UNUSED(argv), vo
BLI_args_print_arg_doc(ba, "--");
# ifdef WITH_CYCLES
printf("Cycles Render Options:\n");
printf("\tCycles add-on options must be specified following a double dash.\n\n");
printf("``--cycles-device OPTIX``\n");
printf("\tSet the device used for rendering. Options: CPU, CUDA, OPTIX, HIP, ONEAPI, METAL.\n\n");
printf("\tAppend +CPU to a GPU device to render on both CPU and GPU.\n\n");
printf("\tExample:\n");
printf("\t# blender -b file.blend -f 20 -- --cycles-device OPTIX\n");
printf("``--cycles-print-stats``\n");
printf("\tLog statistics about render memory and time usage.\n");
# endif WITH_CYCLES
// printf("\n");
// printf("Experimental Features:\n");