pub fn apply_app_output( output: &Path, app_output: Option<PathBuf>, ) -> Result<PathBuf>
Resolve final output path based on --app-output CLI option. Returns the path to the output file and ensures the directory exists.
--app-output