Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

false defaults ignored/removed #96

Closed
eval opened this issue Mar 27, 2024 · 1 comment · Fixed by #97
Closed

false defaults ignored/removed #96

eval opened this issue Mar 27, 2024 · 1 comment · Fixed by #97

Comments

@eval
Copy link
Contributor

eval commented Mar 27, 2024

Some spots where a default set to false are ignored/removed:

user=> (cli/spec->opts {:flag {:default false} :flag2 {:default true}})
{:exec-args {:flag2 true}}

user=> (cli/format-opts {:spec {:flag {:default false} :flag2 {:default true}}})
"  --flag\n  --flag2 true"

Can provide a patch.

@borkdude
Copy link
Contributor

patch welcome

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 a pull request may close this issue.

2 participants