Skip to content

Commit

Permalink
fix(core): attach cli args from target options explicitly with '=' (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Apr 9, 2024
1 parent 9f3d305 commit 0548871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/nx-misc/src/extras.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('Extra Nx Misc Tests', () => {
});

const result = runCLI(`run ${mylib}:echo`, { silent: true });
expect(result).toContain('--var1 a');
expect(result).toContain('--var1=a');
}, 120000);

it('should interpolate provided arguments', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ describe('Run Commands', () => {
{ unknownOptions: { hello: 123 }, parsedArgs: { hello: 123 } } as any,
true
)
).toEqual('echo --hello 123');
).toEqual('echo --hello=123');
});

it('should add all args and unparsed args when forwardAllArgs is true', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export function interpolateArgsIntoCommand(
typeof opts.unknownOptions[k] !== 'object' &&
opts.parsedArgs[k] === opts.unknownOptions[k]
)
.map((k) => `--${k} ${opts.unknownOptions[k]}`)
.map((k) => `--${k}=${opts.unknownOptions[k]}`)
.join(' ');
}
if (opts.args) {
Expand Down

0 comments on commit 0548871

Please sign in to comment.