-
Notifications
You must be signed in to change notification settings - Fork 629
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
Include groovy-cli into dependencies #2857
Comments
Not sure I'm missing something, but nextflow has built-in options parsing as well. Just try
then run
|
Closing for lack of activity |
An old issue, but every time sit down to nextflow -- and think about offering users a robust interface -- it perhaps evokes the same thought as motivated @ssadedin to post a feature request. Sure, Nextflow has basic abilities to parse arguments but you cannot define a CLI and validate it. I've just been studying nf-core again, in hopes that they have solved this issue. Their CLIs are very nice by Nextflow standards, but seem to be hand-crafted in each case. I would point to Python's |
We are discussing an overhaul of pipeline params, including the validation of CLI params against a schema: #4669 Feel free to share your thoughts there, I have also sketched out a few ideas |
New feature
Nextflow currently includes a number of useful Groovy core libraries that enable various native Groovy functions to be used in building pipeline scripts.
I would like to propose that one of the groovy-cli modules be added. I think perhaps the more light weight cli-commons module might be more appropriate as I'm sure there is a strong desire to keep the Nextflow download light weight.
Why I'm suggesting this
One of the nice features of Bpipe that I miss in Nextflow is built in options parsing. In Bpipe, you can very easily make the pipeline consume arguments such as flags, validate their types and provide comprehensive help output, because this is all built into Groovy.
Usage scenario
This feature would enable people to easily build in sophisticated argument parsing and help for their Nextflow pipelines.
Suggest implementation
You don't need to do anything, simply add one of the groovy-cli modules as a dependency. Then users can write things like
and they can run it with Nextflow like:
NB: I know users can accomplish this themselves with Groovy but I feel it's a really nice benefit in this case to have it built in.
The text was updated successfully, but these errors were encountered: