I see the man page for xcrun, but where's the documentation for each of the possible tools you can invoke with xcrun and the arguments each tool accepts? In particular, I want to see the documentation for the metal tool and arguments it accepts such as -gline-tables-only and -frecord-sources. Thank you
xcrun metal -help
This will show documentation for these options for metal
. This is also mentioned in https://developer.apple.com/documentation/metal/shader_libraries/building_a_library_with_metal_s_command-line_tools under "Run Metal's Command-Line Tools"
xcrun is just for locating or executing developer tools but each developer tool may have its own help page.