Repository navigation
fix(fleet): reject arguments after the domain name in fleet help (#5652) - #5653
Merged
Merged
Conversation
developing-today
Bot
requested review from
a team and
dezren39
as code owners
November 4, 2026 21:01
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
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.
Fixes #5652.
The root
helparm inrun_rootresolvedargs[1]as a domain name andnever inspected
args[2..], sofleet help queue --bogus-junkprinted thequeue domain help and exited 0 — the one root built-in the #5572 arity sweep
missed, because its first argument is legitimate.
run_root's help arm now rejects the first argument after the domain namewith the standard usage error (
unexpected argument '<extra>' for 'fleet help', exit 2), before printing any help.root_help_rejects_arguments_after_the_domain_name:extra and multiple-extra forms exit 2; exactly-one-domain and
unknown-domain behavior unchanged.
Verification (laptop):
cargo test -p fleet— 10 passed, including the new test.cargo fmt -p fleetapplied.help queue --bogus-junk→ exit 2 naming theargument;
help queue→ exit 0;help nosuchdomain→ exit 2;bare
help→ exit 0.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.