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! |
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