Skip to content

Allow boolean params to implicitly default to false#6764

Open
bentsherman wants to merge 1 commit intomasterfrom
fix-boolean-params-default-false
Open

Allow boolean params to implicitly default to false#6764
bentsherman wants to merge 1 commit intomasterfrom
fix-boolean-params-default-false

Conversation

@bentsherman
Copy link
Member

This PR changes the behavior of boolean params in the params block so that they implicitly default to false. This way the user doesn't have to specify ... = false for every boolean param, which seems to be the desired behavior 99.9% of the time.

@ewels let me know if you think this makes sense

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman requested a review from ewels January 27, 2026 17:04
@bentsherman bentsherman requested a review from a team as a code owner January 27, 2026 17:04
@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 5ba0393
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6978f01a491619000808495d
😎 Deploy Preview https://deploy-preview-6764--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pditommaso
Copy link
Member

What value they default now? null?

@bentsherman
Copy link
Member Author

Right now they don't default to anything, so you have to specify a default value yourself (e.g. = false) or else the run will fail.

This is reasonable for other types, but for boolean it seems like it should just default to false if you don't declare a default value.

@pditommaso
Copy link
Member

Think false makes sense

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.

2 participants