ResolveOptionSets is a command line utility that merges option sets referend from a dproj file into that file abd removes the reference.
While there might be other use cases, the tool was created for build scenarios, where the sources are freshly checkd out in a temporary folder, making the build and then delete that folder.
One (and my personal) use case is the FinalBuilder Build Delphi action, which doesn't work well when option sets come into play. Running this tool latest just before executing that action solves that problem.