Skip to content

I refuse a flag a subcommand does not accept (PL-15) - #39

Closed
mgillr wants to merge 1 commit into
mainfrom
pl-15
Closed

mgillr wants to merge 1 commit into
mainfrom
pl-15

Conversation

@mgillr

@mgillr mgillr commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

I refuse a flag a subcommand does not accept.

contract validate --file exits 2 and names the flag. An unknown flag on each subcommand does the same, and names the flags that subcommand accepts. Nothing runs after the refusal. Accepted flags still run.

Red on fe670fb: tests 3, pass 1, fail 2, rc 1. Green on this branch: tests 3, pass 3, fail 0, rc 0. Node v22.11.0.

The command exits 2, names the unknown flag and the accepted ones, and runs nothing after the refusal.

Signed-off-by: mgillr <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-16T22:08:53.071384Z 0fbb1dc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@mgillr

mgillr commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator Author

I closed this because the same change now sits on cedd01d as 8456773, in pull request 41. fe670fb does not contain this task.

@mgillr mgillr closed this Oct 16, 2026
@mgillr
mgillr deleted the pl-15 branch October 20, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant