fix: parse check flags after positional paths#49
Merged
jakekaplan merged 3 commits intomainfrom Feb 15, 2026
Merged
Conversation
There was a problem hiding this comment.
Benchmark
Details
| Benchmark suite | Current: 772256a | Previous: b97a7fa | Ratio |
|---|---|---|---|
cpython |
0.0009402560200000001 seconds (± 0) |
0.05583968895999999 seconds (± 0.0008) |
0.016838489567403213 |
airflow |
0.0009572294200000003 seconds (± 0) |
0.15678493406 seconds (± 0.0009) |
0.006105366091066367 |
prefect |
0.0009368286200000001 seconds (± 0) |
0.06596280506 seconds (± 0.0007) |
0.014202376917534927 |
ruff |
0.00098601592 seconds (± 0.0001) |
0.13796103466000004 seconds (± 0.0027) |
0.007147060925064824 |
This comment was automatically generated by workflow using github-action-benchmark.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
+ Coverage 98.63% 98.66% +0.03%
==========================================
Files 21 21
Lines 3225 3305 +80
==========================================
+ Hits 3181 3261 +80
Misses 44 44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
loq check . --output-format json was being interpreted as a path list because PATH accepted hyphen-prefixed values. That made trailing flags like --output-format and --no-cache silently stop working.
This change keeps loq check - support by normalizing - to an internal --stdin flag before clap parsing, and removes broad hyphen-value parsing from PATH. Trailing flags now parse correctly while stdin behavior stays intact.
Example: loq check a.txt --output-format json now returns JSON output instead of text.