Allow false in compose CLI argument - #3670
Conversation
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
|
I am confused. What is the purpose here? |
This CLI argument is always true regardless how a user configures it, even if they try to configure it as a false. This change allows users to set it to false if they want. |
|
But they can just leave it out. Flags like |
It defaults to I can also remove the The current PR can avoid breaking change, but the alternative might be more correct and simple. Either way works, what do you think? |
|
Oh! I think I have confused myself. Sorry! And thanks for patiently clarifying. @fibonacci1729 I think this was a flag that you added. I recall choosing this over |
|
@itowlson no problem, and thanks for looking into this! |
|
Thanks for catching this @ChihweiLHBird ! Indeed your assessment is correct that the flag was never settable (AFAICT this wasn't due to the clap4 migration). In practice this isn't a huge concern because most downstream vendors require precomposing (i.e. SpinKube) while others that I know of programmatically call the registry APIs with This PR LGTM. One thing that would be nice to see is a parse test in |
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
Allow compose to be passed as a false.
--compose=false(plus boolish spellings like 0, no, off) to actually selectComposeMode::Skip, which is previously unreachable from the CLI--composestill works, defaulting to true viadefault_missing_valuerequire_equals = trueprevents--compose falsefrom swallowing the positional registry reference as the flag's value