grst / nxfvars

Access nextflow variables from python scripts or notebooks
MIT License
21 stars 0 forks source link

Add CLI mode #2

Open grst opened 3 years ago

grst commented 3 years ago

Allow use of nxfvars to build a minimalistic CLI.

Example:

nxf.input("adata_object", default='/tmp/adata.h5ad', description="The adata object to work on")
nxf.param("foo", default="bar")
nxf.cli()

Help page

--adata_object             The adata object to work on [default: /tmp/adata.h5ad]
--params.foo               [default: bar]

--help/-h                  Show this page