feat: add --result as undocumented alias for --results#28
Merged
Malcolmnixon merged 1 commit intomainfrom Apr 14, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/demaconsulting/FileAssert/sessions/d471742e-a9b9-490a-a3db-2b8b10f09d6d Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Malcolmnixon
April 13, 2026 22:55
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an undocumented CLI alias --result for the existing --results option to preserve compatibility with users who omit the trailing s.
Changes:
- Added
--resultas a fall-through alias to the--resultsargument parsing branch. - Added a unit test asserting
--result <file>setsResultsFile.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/DemaConsulting.FileAssert/Cli/Context.cs | Adds --result case to route to the existing --results handling and ResultsFile assignment. |
| test/DemaConsulting.FileAssert.Tests/Cli/ContextTests.cs | Adds a new unit test validating --result sets ResultsFile. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
--resultas a legacy/alias form of--resultsfor users who may omit the trailings. The alias is intentionally undocumented (no README or user-guide changes).Description
Context.cs— Addedcase "--result":fall-through beforecase "--results":in theArgumentParserswitch, so both spellings resolve to the sameResultsFileassignment.ContextTests.cs— AddedContext_Create_ResultAliasFlag_SetsResultsFileto verify--result <file>correctly setsResultsFile.Type of Change
Pre-Submission Checklist
Build and Test
dotnet build --configuration Releasedotnet test --configuration Releasedotnet run --project src/DemaConsulting.FileAssert --configuration Release --framework net10.0--no-build -- --validateCode Quality
Quality Checks
./lint.sh(Unix/macOS) orcmd /c lint.bat/./lint.bat(Windows)Testing
Documentation
Additional Notes
The alias is a silent convenience; it is deliberately excluded from the README and user guide to avoid advertising it as a supported flag.