Skip to content

Commit 84775d8

Browse files
committed
fix: fix release issue in cli.js
Signed-off-by: dhmlau <dhmlau@ca.ibm.com>
1 parent 2cb41eb commit 84775d8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/cli/lib/cli.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,10 @@ function main(opts, log) {
202202
commandOptions[n] = {...opt, type: opt.type.name};
203203
}
204204
const commandArgs = [];
205-
for (const arg of gen._arguments) {
206-
commandArgs.push({...arg, type: arg.type.name});
205+
if (!gen) {
206+
for (const arg of gen._arguments) {
207+
commandArgs.push({...arg, type: arg.type.name});
208+
}
207209
}
208210
optionsAndArgs[name] = {
209211
options: commandOptions,

0 commit comments

Comments
 (0)