Skip to content

Commit

Permalink
Fix -d conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Jan 6, 2024
1 parent 4082e0e commit b770a4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,14 @@ export class CLI {

this.debugLogger.trace('Checking for missing/invalid options:', orderedOptionNames);

// this is a hack... `-d` now conflicts between `--workspace-dir` and
// the now global `--project-dir` option causing `--project-dir` to
// snipe `--workspace-dir`, so we treat them the same for the `create`
// command
if (this.command.name() === 'create' && !this.argv['workspace-dir']) {
this.argv['workspace-dir'] = this.argv['project-dir'];
}

// this while loop is essentially a pump that processes missing/invalid
// options one at a time, recalculating them each iteration
// eslint-disable-next-line no-constant-condition
Expand Down

0 comments on commit b770a4c

Please sign in to comment.