Skip to content

Commit ca4bd91

Browse files
joshsmithxrmclaude
andcommitted
fix: distinguish user-provided mapping from auto-created default in summary
Check userMappingFile (the CLI argument) instead of importOptions.UserMappings to determine if the user provided a mapping file. When --strip-owner-fields is used without --user-mapping, the code creates an auto-default mapping that should not report "userMappingProvided": true. Closes #202 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent be16308 commit ca4bd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PPDS.Cli/Commands/Data/ImportCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private static async Task<int> ExecuteAsync(
294294
ImportMode = importOptions.Mode.ToString(),
295295
StripOwnerFields = importOptions.StripOwnerFields,
296296
BypassPlugins = importOptions.BypassCustomPlugins != CustomLogicBypass.None,
297-
UserMappingProvided = importOptions.UserMappings != null
297+
UserMappingProvided = userMappingFile != null
298298
};
299299

300300
await outputManager.WriteSummaryAsync(

0 commit comments

Comments
 (0)