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

allows parameters when run a plugin subcommand #5643

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jagedn
Copy link

@jagedn jagedn commented Jan 6, 2025

Current implementation doesn't allow to pass tagged parameters when running a cmd plugin, only positional parameters are allowed (see #5084 )

This PR is a proposal to allow "--" as DynamicParameter so plugins can parse them.

For example, once the plugin receives the String[]args, it can use JCommander and parse the arguments similar as core is doing right now so running

nextflow plugin my-plugin:my-command 1234 --f memory,module,name

can be the same as running

nextflow plugin my-plugin:my-command --f memory,module,name 1234

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 3808585
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/6785213435f55b00088ba73d

@pditommaso
Copy link
Member

Thanks @jagedn! @bentsherman @tom-seqera thoughts?

@bentsherman bentsherman linked an issue Jan 10, 2025 that may be closed by this pull request
@pditommaso
Copy link
Member

Some docs (?) tests are failing

@bentsherman
Copy link
Member

Should be fixed by the upstream changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin did not take subcommand options
3 participants