Skip to content

Commit

Permalink
Fix positional default workspace root argument
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <[email protected]>
  • Loading branch information
tsmaeder committed Aug 11, 2023
1 parent 8f0d37f commit 091ff42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workspace/src/node/default-workspace-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class WorkspaceCliContribution implements CliContribution {
}

async setArguments(args: yargs.Arguments): Promise<void> {
const workspaceArguments = args._.slice(2).map(probablyAlreadyString => String(probablyAlreadyString));
const workspaceArguments = args._.map(probablyAlreadyString => String(probablyAlreadyString));
if (workspaceArguments.length === 0 && args['root-dir']) {
workspaceArguments.push(String(args['root-dir']));
}
Expand Down

0 comments on commit 091ff42

Please sign in to comment.