Skip to content

main: don't accept multiple --blueprint#539

Closed
supakeen wants to merge 1 commit into
osbuild:mainfrom
supakeen:dont-accept-blueprint-multiple-times
Closed

main: don't accept multiple --blueprint#539
supakeen wants to merge 1 commit into
osbuild:mainfrom
supakeen:dont-accept-blueprint-multiple-times

Conversation

@supakeen

@supakeen supakeen commented Jun 2, 2026

Copy link
Copy Markdown
Member

Cobra by default lets us pass string values multiple times and uses the last one. This is confusing and was reported to be confusing on the --blueprint flag.

Let's address it there with a new type that only allows a single value to be set. We might want to expand this to all string-type flags.

Closes #532.

@supakeen supakeen requested a review from a team as a code owner June 2, 2026 09:07
@supakeen supakeen requested review from avitova, croissanne and lzap June 2, 2026 09:07
@supakeen supakeen force-pushed the dont-accept-blueprint-multiple-times branch from 0b6d361 to bb41f8e Compare June 2, 2026 09:10
Cobra by default lets us pass string values multiple times and uses the
last one. This is confusing and was reported to be confusing on the
`--blueprint` flag.

Let's address it there with a new type that only allows a single value
to be set. We might want to expand this to all string-type flags.

Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
@supakeen supakeen force-pushed the dont-accept-blueprint-multiple-times branch from bb41f8e to ca15177 Compare June 2, 2026 09:11
@supakeen supakeen marked this pull request as draft June 2, 2026 10:29
@supakeen supakeen closed this Jun 3, 2026
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.

--blueprint is accepted multiple times

1 participant