Problem consolidating bpipe and pipe CLI

16 views
Skip to first unread message

mrmxs

unread,
Aug 20, 2020, 3:40:35 PM8/20/20
to bpipe-discuss
hi,

i have the following problem. I created my own pipeline that takes its own cli parameters like so:

```
/*--------------------------------   CLI   -----------------------------------*/
options {
    projectName  'Project Name',   args: 1, required: true
}

/*-----------------------------   Set vars   ---------------------------------*/
PROJECT ="$opts.projectName"
```

Then I executed it :

```
bpipe run  wesReCalc.groovy  -projectName MrX
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.

```
all good here ... but  when I wanna specify threading:


bpipe run  -n 2 wesReCalc.groovy  -projectName MrX
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
====================================================================================================
|                              Starting Pipeline at 2020-08-20 21:29                               |
====================================================================================================

ERROR: One or more pipeline options were invalid or missing.

error: Missing required option: projectName
usage: bpipe run <bpipe options> wesReCalc.groovy <pipeline options> <input files>
 -projectName <arg>   Project Name
```


How to resolve this problem ?

thnx

Reply all
Reply to author
Forward
0 new messages