Skip to content

Reject extra args in get commands - #5913

Open
immanuwell wants to merge 1 commit into
fluxcd:mainfrom
immanuwell:fix-get-extra-args
Open

Reject extra args in get commands#5913
immanuwell wants to merge 1 commit into
fluxcd:mainfrom
immanuwell:fix-get-extra-args

Conversation

@immanuwell

@immanuwell immanuwell commented May 24, 2026

Copy link
Copy Markdown
Contributor

Tiny CLI papercut fix.

flux get ... only accepts one resource name, but right now extra args get silently ignored. Kinda sneaky.

Repro:

flux get sources git podinfo podinfo-shard1 -n flux-system

Before:

  • succeeds
  • prints the result for podinfo
  • ignores podinfo-shard1

After:

  • fails fast with expected at most one resource name, got 2

Checks:

  • make tidy fmt vet && make test

Signed-off-by: immanuwell <pchpr.00@list.ru>
Assisted-by: codex/gpt-5
@immanuwell
immanuwell force-pushed the fix-get-extra-args branch from edfb691 to 3fe2657 Compare May 24, 2026 14:01
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