Skip to content

Commit b5d43ad

Browse files
authored
Fix CLI params normalization (#5661) [e2e prod]
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 8342889 commit b5d43ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ class CmdRun extends CmdBase implements HubOptions {
685685
addParam((Map)nested, key.substring(p+1), value, path, fullKey)
686686
}
687687
else {
688-
params.put(key.replaceAll(DOT_ESCAPED,'.'), parseParamValue(value))
688+
addParam0(params, key.replaceAll(DOT_ESCAPED,'.'), parseParamValue(value))
689689
}
690690
}
691691

modules/nextflow/src/test/groovy/nextflow/cli/CmdRunTest.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ class CmdRunTest extends Specification {
9999

100100
when:
101101
def params = [:]
102-
CmdRun.addParam0(params, 'alphaBeta', 1)
103-
CmdRun.addParam0(params, 'alpha-beta', 10)
102+
CmdRun.addParam(params, 'alphaBeta', '1')
103+
CmdRun.addParam(params, 'alpha-beta', '10')
104104
then:
105105
params['alphaBeta'] == 10
106106
!params.containsKey('alpha-beta')
107107

108108
when:
109109
params = [:]
110-
CmdRun.addParam0(params, 'aaa-bbb-ccc', 1)
111-
CmdRun.addParam0(params, 'aaaBbbCcc', 10)
110+
CmdRun.addParam(params, 'aaa-bbb-ccc', '1')
111+
CmdRun.addParam(params, 'aaaBbbCcc', '10')
112112
then:
113113
params['aaaBbbCcc'] == 10
114114
!params.containsKey('aaa-bbb-ccc')

0 commit comments

Comments
 (0)