Make Export-Csv -Append and -NoHeader mutually exclusive by yotsuda · Pull Request #26472 · PowerShell/PowerShell
…exclusive - Add validation in ExportCsvCommand.BeginProcessing() to throw an error when both -Append and -NoHeader parameters are specified together - Add error message resource: CannotSpecifyAppendAndNoHeader - Add Pester test to verify the error is thrown correctly This prevents undefined behavior when users attempt to append to a CSV file without headers, which could result in data corruption or confusion.
yotsuda
changed the title
Fix #25820: Make Export-Csv -Append and -NoHeader mutually exclusive
Make Export-Csv -Append and -NoHeader mutually exclusive
iSazonov
added
the
CL-General
label
yotsuda
marked this pull request as ready for review
yotsuda
deleted the
fix/export-csv-validation
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters